Rust example for benchmarking with
Official documentation for usage of
- name: Run benchmark run: cargo +nightly bench | tee output.txt
cargo bench is available only with nightly toolchain.
Note that this example does not use LTO for benchmarking because entire code in benchmark iteration
will be removed as dead code. For normal use case, please enable it in
Cargo.toml for production
[profile.bench] lto = true
Process benchmark results
Store the benchmark results with step using the action. Please set
- name: Store benchmark result uses: rhysd/github-action-benchmark@v1 with: tool: 'cargo' output-file-path: output.txt
Please read 'How to use' section for common usage.