Skip to content

Commit

Permalink
CI: run benches with hyperfine rather than bash
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 25, 2024
1 parent e6914bb commit a62ef8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ jobs:
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: cargo-${{ runner.os }}-reset20240331-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-reset20240331
restore-keys: cargo-${{ runner.os }}-reset20240425

- name: Install rustup-toolchain-install-master
- name: Install tools
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: cargo install -f rustup-toolchain-install-master
run: cargo install -f rustup-toolchain-install-master hyperfine

- name: Install miri toolchain
run: |
Expand Down
4 changes: 2 additions & 2 deletions ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function run_tests {
done
fi
if [ -n "${TEST_BENCH-}" ]; then
# Check that the benchmarks build and run, but without actually benchmarking.
time HYPERFINE="'$BASH' -c" ./miri bench
# Check that the benchmarks build and run, but only once.
time HYPERFINE="hyperfine -w0 -r1" ./miri bench
fi

## test-cargo-miri
Expand Down

0 comments on commit a62ef8f

Please sign in to comment.