How to create a new benchmark
masterBenchmarks are defined as directories within the ./benchmarks folder. Each benchmark directory must contain:
- A
benchmarkexecutable: The core logic. Itsstdoutis used as the benchmark payload. - A
setupexecutable (optional): Used for one-time initialization tasks.
Note on execution: The stdout of the benchmark executable is automatically repeated to ensure a sufficient sample size. To prevent repeated overhead, move any logic that should only run once into the setup executable.
./benchmarks/
└── my-new-benchmark/
├── benchmark
└── setup (optional)