Expand description
Declarative fixtures for the turnkey real-CU bench path.
A BenchPlan describes, as plain data, the instruction(s) to execute against
a compiled Solana program so a live backend (Mollusk) can measure real compute
units — no hand-written Rust harness required. This module owns only the
schema, parsing and validation; it pulls in no Solana crates and runs
everywhere the core does (including Windows). Converting a validated plan into
solana-instruction/solana-account types and executing it lives in the
Linux-only cu-profiler-mollusk integration crate.
# bench.toml
[[instruction]]
scenario = "swap_exact_in"
program_id = "SwapPRogram1111111111111111111111111111"
data = "01ab" # hex-encoded instruction data
[[instruction.account]]
pubkey = "11111111111111111111111111111111"
signer = true
writable = true
lamports = 1000000Structs§
- Account
Fixture - One account in an instruction’s account list.
- Bench
Plan - A set of instruction fixtures to benchmark, parsed from a
bench.toml. - Instruction
Fixture - A single instruction to execute against the program under test.