Only benchmark main #9
Workflow file for this run
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 | |
env: | |
CARGO_TERM_COLOR: always | |
BENCHER_PROJECT: trace4rs | |
BENCHER_ADAPTER: rust_criterion | |
BENCHER_TESTBED: ubuntu-latest | |
jobs: | |
benchmark_main_with_bencher: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
name: Track main benchmarks with Bencher | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: bencherdev/bencher@main | |
- name: Benchmark trace4rs main with Bencher | |
run: | | |
bencher run \ | |
--branch main \ | |
--token "${{ secrets.BENCHER_API_TOKEN }}" \ | |
"cargo bench" |