Using the Criterion.rs compatibility layer for CodSpeed
cargo-codspeed
command to build and run your
CodSpeed benchmarkscriterion.rs
compatibility layer:
Cargo.toml
if you already have criterion
installed:
codspeed-criterion-compat
crate and rename it to
criterion
in your Cargo.toml
. This way, you can keep your existing imports
and the compatibility layer will take care of the rest.
codspeed-criterion-compat
as is and change
your imports to use this new crate name.Cargo.toml
:
main
branch and every
pull request: