Overview
codspeed-criterion-compat is a Criterion.rs compatibility layer for CodSpeed
that allows you to seamlessly integrate existing Criterion benchmarks with
CodSpeed performance measurement.
This crate acts as a drop-in replacement for Criterion, maintaining your
existing benchmark code while enabling CodSpeed integration.
Installation
Usage
Let’s start with the example from the Criterion.rs documentation, creating a benchmark suite for the Fibonacci function (inbenches/my_benchmark.rs):
Cargo.toml:
Cargo.toml
cargo-codspeed:
terminal
Compatibility
Not (yet) supported
iter_customwith_filter