✅ add new bench #2
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: main | |
jobs: | |
benchmark_with_bencher: | |
name: Continuous Benchmarking with Bencher | |
runs-on: ubuntu-latest | |
env: | |
BENCHER_PROJECT: rust-template | |
BENCHER_TESTBED: ubuntu-latest | |
BENCHER_ADAPTER: rust-bench | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bencherdev/bencher@main | |
- name: Track Benchmarks with Bencher | |
run: | | |
bencher run \ | |
--branch "$GITHUB_REF_NAME" \ | |
--token "${{ secrets.BENCHER_API_TOKEN }}" \ | |
--err \ | |
"bencher mock" |