Minimal single-market perpetual order book with deterministic matching and command-journal replay.
- Rust toolchain (stable, with Cargo)
- Build the project:
cargo build- Run the demo scenario (prints commands/events and final top of book):
cargo run- Run all tests:
cargo testBenchmarks use Criterion.
Run the benchmark suite:
cargo bench --bench engineOptional faster local run (smaller sample size):
cargo bench --bench engine -- --sample-size 10Results are printed in the terminal and written under target/criterion/.