Compute units, measured.

Every number on this page is measured, not estimated. We ran each book's mainnet program on the same local validator with its own client, tested liquidation on the compiled program, and averaged live devnet transactions you can check in the explorer.

Live on devnet

Per-instruction compute units of recent AxioPerp transactions on devnet, read from the program logs, including the keeper's.

ActionCountMeanMedianp95Max

Against other on-chain order books

One transaction per action. AxioPerp includes its margin check and event log; the others are spot books with neither.

Market order as it fills more

One market order fills N resting orders of 10 lots each, either at N different prices or all at one price.

N orders at N prices

N orders at one price

Fails at N: the smallest N one market order cannot fill. OpenBook v2 stops matching after 255 orders, and at one price runs out of memory at 212. Phoenix v1 and Manifest run out of the 1.4M compute limit; Phoenix v1 was measured on its largest market, 4,096 orders a side. AxioPerp's market order is O(log N): it never fails.

Liquidation

On the compiled program in LiteSVM. One instruction does it all: withdraws the account's orders, sweeps the book, deleverages the rest and settles any shortfall.

Typical

Worst case

AxioPerp's own worst case, built to cost as much as the program allows:

Open ordersMarketsSweepCompute units

The worst case is CU, within one transaction's 1.4M limit. Most of it is unwinding the 32 orders; without open orders the same liquidation takes 20,773–22,470 CU.

Method