You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2025, it will be time to refresh and update our benchmarks again, based on our benchmark update policy.
The update policy, and a guide of how to actually update the benchmarks is described here. In short:
Download the new benchmark
$ cargo run --bin collector download -c Primary -a <library/binary> crate <name><version>
Add Cargo.lock in the downloaded crate to git, even if it is ignored!
Commit
Copy perf-config.json and .patch files from the old version
Add [workspace] to Cargo.toml if it's not already there
Check that
$ cargo build -p collector; cargo run --bin collector bench_local `rustup +stable which rustc` --include <benchmark-name>
works
If it fails because "patch does not apply", re-create the old patch files based on the updated benchmark source code. For each patch file, perform the same change as was in the original patch file, and then run git diff --patch --relative from the directory of the benchmark and store the output into the patch filename.
Modify collector/compile-benchmarks/README.md
Modify collector/compile-benchmarks/REUSE.toml
Commit
Run timings in old and new version and post the results to the PR description
time -p CARGO_INCREMENTAL=0 cargo check ; cargo clean
time -p CARGO_INCREMENTAL=0 cargo build ; cargo clean
time -p CARGO_INCREMENTAL=0 cargo build --release ; cargo clean
In 2025, it will be time to refresh and update our benchmarks again, based on our benchmark update policy.
The update policy, and a guide of how to actually update the benchmarks is described here. In short:
Cargo.lock
in the downloaded crate to git, even if it is ignored!perf-config.json
and.patch
files from the old version[workspace]
to Cargo.toml if it's not already thereworks
git diff --patch --relative
from the directory of the benchmark and store the output into the patch filename.collector/compile-benchmarks/README.md
collector/compile-benchmarks/REUSE.toml
Progress
The text was updated successfully, but these errors were encountered: