A template repository for learning Rust performance measurement with CodSpeed.
This workshop uses divan for benchmarking with CodSpeed's compatibility layer.
cargo install cargo-codspeed --locked# generate the reference files
cargo run --release --bin generate_fasta
cargo run --release --bin generate_blobsRunning with divan:
cargo bench --bench bfs # here we are only running the bfs benchmarkRunning the benchmarks with cargo-codspeed:
cargo codspeed build -m walltime
cargo codspeed run -m walltimeNote: You can also set the CODSPEED_RUNNER_MODE environment variable to walltime to avoid passing -m walltime every time.