Overview
codspeed-divan-compat is a Divan compatibility layer for CodSpeed that allows
seamless integration of Divan benchmarks with CodSpeed performance measurement.
This crate acts as a drop-in replacement for Divan, maintaining your existing
benchmark code while enabling CodSpeed integration.
Installation
Usage
Let’s start with the example from the divan documentation, creating a benchmark suite for the Fibonacci function (inbenches/my_benchmark.rs):
Cargo.toml:
Cargo.toml
cargo-codspeed:
terminal
Compatibility
Not (yet) supported
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.