Use binstall to hopefully speed up this workflow #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | |
on: | |
push: | |
branches: master | |
jobs: | |
benchmark_with_bencher: | |
name: Benchmark with Bencher | |
runs-on: ubuntu-22.04 | |
env: | |
BENCHER_PROJECT: mpeg2ts-reader | |
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/[email protected] | |
- uses: bencherdev/bencher@main | |
- uses: cargo-bins/cargo-binstall@main | |
- run: sudo apt-get install valgrind | |
- run: cargo binstall [email protected] | |
- run: ls -l testsrc.ts | |
- run: | | |
IAI_CALLGRIND_COLOR=never cargo bench --bench ci_bench > perf.txt | |
- run: | | |
bencher run \ | |
--branch "$GITHUB_REF_NAME" \ | |
--err \ | |
--adapter rust_iai_callgrind \ | |
--hash "$GITHUB_SHA" \ | |
--file "perf.txt" |