Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 08dd8a3

Browse files
committed
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.
1 parent 198cfe8 commit 08dd8a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libm/.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ jobs:
156156
- uses: Swatinem/rust-cache@v2
157157
- name: Download musl source
158158
run: ./ci/download-musl.sh
159-
- run: cargo bench --all --features libm-test/short-benchmarks,libm-test/build-musl
159+
- run: |
160+
# Always use the same seed for benchmarks. Ideally we should switch to a
161+
# non-random generator.
162+
export LIBM_SEED=benchesbenchesbenchesbencheswoo!
163+
cargo bench --all --features libm-test/short-benchmarks,libm-test/build-musl
160164
161165
msrv:
162166
name: Check MSRV

0 commit comments

Comments
 (0)