A compatibility layer for divan
codspeed-divan-compat
is a Divan compatibility layer for CodSpeed that allows seamless integration of Divan benchmarks with CodSpeed performance measurement.
codspeed-divan-compat
crate and rename it to divan
in your Cargo.toml
.
This way, you can keep your existing imports and the compatibility layer will take care of the rest.Using the compatibility layer won’t change the behavior of your benchmark suite and divan will still run it as usual.If you prefer, you can also install codspeed-divan-compat
as is and change your imports to use this new crate name.benches/my_benchmark.rs
):
Cargo.toml
:
cargo-codspeed
:
divan::bench(crate = xxx)
: due to how the compatibility layer works internally, we do not plan to support this feature.divan::bench_group
: we do not support benchmark grouping yet, if you need it don’t hesitate to create an issue.