Altius JournalBack to Blog
Engineering

HPEC Performance: 1M+ orders per second, sustained

HPEC cleared more than 1 million orders per second in internal testing of the full node, with state roots, cross margin and replayable results.

HPEC Performance: 1M+ orders per second, sustained

Throughput is the volume a venue can take in at once. But more practically, it’s headroom. When markets move, makers cancel and reprice at the same time, and margin checks and liquidations spike with them. A venue needs capacity well above its average load so that it doesn’t become the bottleneck precisely when traders need it. 

Across many runs, HPEC showed sustained load at more than 1 million orders per second, with peak figures (using a slightly different setup) reaching more than 2 million orders per second. 

Testing scope

HPEC is the matching engine that runs with Altius Venue. In internal testing on a single sequencer, the full HPEC node processed more than 1 million orders per second, with a ceiling over 2 million. The median burst was 1.08M orders per second.

Markets are sharded across cores. Each market's order book lives on one core and is never split, so capacity grows with the number of markets, not with volume in any single one.

These runs used the node as served, and every batch carried a state root and a signed header. Every record was written to a data-availability log with an fsync. Global cross margin was checked on each order, liquidations and funding ran throughout, and funding was paid across 100,000 accounts. Each epoch's results were posted to HPEC's L1 contracts on a local test chain.

The workload was mixed transaction data based on a real trading platform's blocks, so the order flow resembles real onchain trading behavior rather than a uniform stream. Load came from a separate machine over a binary wire protocol, with an authenticated session on each connection.

Hardware

Processor: AMD EPYC 9R14 (4th-gen Genoa), up to 3.7 GHz

Cores and memory: 64 vCPUs, 128 GiB

Network: 25 Gbps

Storage: EBS only, so the data-availability log's fsyncs go to network-attached disks

Methodology

We use a strict definition of the rate:

Orders only. The figure counts placements and excludes cancels, so it is the smaller of the two numbers we could have quoted.

Counted from the log. Orders are counted from the data-availability log over header time. A message accepted on the wire is not throughput, and a client-side count can include work the node has not finished.

No refused transactions. The workload is built so that every transaction should execute, and the harness enforces this. A single refused transaction voids the whole result set, and no rate is printed. Each set begins with a deliberate bad cancel and an under-margined bid, to confirm the check catches a refusal.

Margin check included. Risk checking has a throughput penalty The same test with global cross margin off ran at 1.32 million orders per second, so checking margin on every order costs roughly 18 percent

Replay results

Each result set includes a replay. An extra burst is journaled, its log is re-executed at a different core count, and every state root must match or the set is invalid. Because each market belongs to exactly one shard, this tests that the partitioning does not change the outcome. 

Each run also recorded the commits of both repositories, the binary hash, the kernel, the CPU, the instance type and the exact command line. 

What's next

These are short bursts on a single sequencer, with settlement on a local test chain. Future testing will include E2E and additional performance optimizations expected to raise the floor and ceiling capacity.

If you run or build an exchange, reach out to the team: https://www.altiuslabs.xyz/venue/