Open lidatong opened 2 years ago
Currently working on filling in this table. Working on getting an apples-to-apples comparison, i.e. everything on Solana 1.9.6
, running against a local test validator, etc.
Dex V3 (Serum) | AOB (Bonfida) | AOB (Anchor) | Dex V4 (Bonfida) | Dex V4 (Anchor) | |
---|---|---|---|---|---|
create market | |||||
new order | |||||
cancel order | |||||
consume events | |||||
close market |
mass-cancel
or vwap
create
/ close
since they're one-time costs. also, since it's idiomatic in Anchor to CPI the system program to alloc the accounts (vs. on the client side), they'll probably be much higher in compute unitswe can also create a similar table for #11
i'm pulling compute units manually from solana logs after running these clients / tests
currently landscape is some minimal tests:
functional.rs (from upstream)
is the existingsolana-program-test
(BanksClient
)integration.rs
is the same test, programmatically standing up thesolana-test-validator
tasks:
n
bids,n
asks at same price, size = 10 fills)simulate_operations
incritbit.rs
already does something like this: generaten
random tree instructions, it should match the output ofBTreeMap