Cargo extension to build & run your codspeed benchmarks
Actively maintained. Last release 4 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
$
pip install astral-dev-toolchain-cargo-codspeedBuild provenance: This package is built and distributed by Astral as part of
astral-dev-toolchain. It packagescargo-codspeedfrom tagv6.0.0at commit5caa8dcab88a651dbb1db02e18a5fdd3bbcff7f0.
Installation
With cargo
cargo install cargo-codspeed --locked
With cargo-binstall(recommended in CI)
cargo-binstall enables you to install binaries directly without having to build from the source(with cargo install) every time.
If you don't have installed yet, you can install it with:
cargo install cargo-binstall
You can then install cargo-codspeed with:
cargo binstall cargo-codspeed
Usage
Usage: cargo codspeed <COMMAND>
Commands:
build Build the benchmarks
run Run the previously built benchmarks
Options:
-h, --help Print help information
-V, --version Print version information
Development
Troubleshooting
-
Build error on MacOS:
ld: library 'git2' not found