Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 838 Bytes

File metadata and controls

36 lines (24 loc) · 838 Bytes

EuroRust 2025 Workshop

A template repository for learning Rust performance measurement with CodSpeed.

Getting Started

This workshop uses divan for benchmarking with CodSpeed's compatibility layer.

Install cargo-codspeed

cargo install cargo-codspeed --locked

Run benchmarks locally

# generate the reference files
cargo run --release --bin generate_fasta
cargo run --release --bin generate_blobs

Running with divan:

cargo bench --bench bfs # here we are only running the bfs benchmark

Running the benchmarks with cargo-codspeed:

cargo codspeed build -m walltime
cargo codspeed run -m walltime

Note: You can also set the CODSPEED_RUNNER_MODE environment variable to walltime to avoid passing -m walltime every time.