Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 675 Bytes

File metadata and controls

45 lines (28 loc) · 675 Bytes

Perp Order Book

Minimal single-market perpetual order book with deterministic matching and command-journal replay.

Prerequisites

  • Rust toolchain (stable, with Cargo)

Quick Start

  1. Build the project:
cargo build
  1. Run the demo scenario (prints commands/events and final top of book):
cargo run
  1. Run all tests:
cargo test

Benchmarking

Benchmarks use Criterion.

Run the benchmark suite:

cargo bench --bench engine

Optional faster local run (smaller sample size):

cargo bench --bench engine -- --sample-size 10

Results are printed in the terminal and written under target/criterion/.