Always use the same seed for benchmarking

It would be preferable to switch to a different generator, or at least
set the seed within the benchmark, but this is the most straightforward
way to make things simple.
This commit is contained in:
Trevor Gross 2025-01-12 03:55:46 +00:00 committed by Trevor Gross
parent e1749bdb6d
commit 2912076e50

View file

@ -156,7 +156,11 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Download musl source
run: ./ci/download-musl.sh
- run: cargo bench --all --features libm-test/short-benchmarks,libm-test/build-musl
- run: |
# Always use the same seed for benchmarks. Ideally we should switch to a
# non-random generator.
export LIBM_SEED=benchesbenchesbenchesbencheswoo!
cargo bench --all --features libm-test/short-benchmarks,libm-test/build-musl
msrv:
name: Check MSRV