Using the bencher (libtest) compatibility layer for CodSpeed
cargo-codspeed
command to build and run your
CodSpeed benchmarksbencher
compatibility layer:
Cargo.toml
if you already have bencher
installed:
codspeed-bencher-compat
as is and change
your imports to use this new crate name.codspeed-bencher-compat
crate and rename it to bencher
in your Cargo.toml
. This way, you can keep your existing imports and the
compatibility layer will take care of the rest.
bencher
documentation, creating a
benchmark suite for 2 simple functions:
Cargo.toml
:
main
branch and every
pull request: