Skip to content

Performance

Vortum delivers CEX-grade matching speed on a fully decentralized platform — powered by ICP's unique canister architecture.

The ICP Advantage

Internet Computer is the only blockchain where complex computation happens on-chain in real-time. Vortum leverages this to build something impossible elsewhere: a non-custodial exchange with institutional-grade performance.

What ICP EnablesVortum Benefit
Canister Smart ContractsFull matching engine runs on-chain, not off-chain
Web-Speed ExecutionSub-microsecond order processing
Chain FusionNative BTC, SOL, ICP trading without bridges
Deterministic ExecutionPredictable, verifiable order processing
Low CostFractions of a cent per transaction

Performance Summary

MetricVortumWhat It Means
Order Execution~400 nsOrders match instantly within the canister
Throughput1M+ ops/secHandle any realistic trading volume
Finality1-2 secondsICP consensus — improves as ICP evolves
Order Book Capacity5M+ ordersDeep liquidity without slowdown

ICP Finality

Our matching engine is ready for sub-second finality. As ICP consensus improves, Vortum users benefit automatically — no protocol changes needed.

Detailed Benchmarks

All numbers are verified and reproducible: cargo bench -p orderbook

Core Operations

OperationLatencyNotes
Place limit order~400 nsPassive order, no matching
Place market order~1.2 μsIncludes matching against resting orders
Cancel order~240 nsInstant cancellation
Modify order~560 nsChange price or quantity
Query best bid/ask14 nsReal-time market data
Query depth (10 levels)190 nsFull order book snapshot

Throughput at Scale

Order Book SizeThroughput
1,000 orders1.1M ops/sec
10,000 orders1.1M ops/sec
100,000 orders1.0M ops/sec

Performance remains consistent regardless of order book depth — critical for high-volume markets.

Stress Tests

Real-world trading scenarios validated:

ScenarioResult
1,000 aggressive orders vs 100K book✅ 2.4 ms
4,000 mixed operations (add/modify/cancel)✅ 1.7 ms (2.4M ops/sec)
Sequential cancellation of 1,000 orders✅ 209 μs
High-churn alternating bid/ask✅ Graceful degradation

How It Works

Architecture

ComponentDesign ChoiceWhy
Price levelsBTreeMapO(log n) lookup, cache-friendly
Order storagePool allocationZero allocation in hot path
Order queueFIFO linked listO(1) insertion, fair ordering
Matching engineDual-layerCore logic isolated from validation overhead

Memory Usage

Active OrdersMemoryPer Order
10,0006 MB~600 bytes
100,00060 MB~600 bytes
1,000,000600 MB~600 bytes

ICP canisters support 4 GB heap memory — Vortum can handle 5+ million active orders with headroom for growth.

For Traders

Market Makers: 240-560 ns modify/cancel enables tight spreads and rapid position management.

Algorithmic Traders: Consistent sub-microsecond latency for reliable strategy execution.

Institutional: 100K+ order book depth with no performance degradation.

For Builders

Integrate Vortum into your ICP application:

typescript
import { VortumClient } from '@vortum/sdk'

const client = await VortumClient.create()
await client.trading.placeOrder({
  marketId: 'BTC-USDC',
  side: 'buy',
  type: { limit: 50000_00000000n },
  quantity: 100000n,
})

Full TypeScript SDK with WebSocket subscriptions for real-time updates.

Verify Yourself

bash
# Clone and run benchmarks
git clone https://github.com/mfactory-lab/vortum
cargo bench -p orderbook

Benchmarks use Criterion.rs with statistical analysis for accuracy.

Roadmap

ImprovementStatusImpact
Current engine✅ Live1M+ ops/sec
Batch order API🔄 Planned+50% for bulk operations
Multi-market parallelism🔄 PlannedLinear scaling
ICP consensus improvements🔄 ExternalFaster finality

Why Vortum on ICP

Other blockchains force a choice: decentralization or performance. ICP enables both. Vortum is the first exchange to fully leverage this — institutional-grade speed, fully on-chain, completely non-custodial.