Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test bencher #94

Closed
wants to merge 10 commits into from
37 changes: 37 additions & 0 deletions .github/workflows/track_benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Track Benchmark

on:
push:
paths-ignore: ["docs/**", "**.md"]
branches:
- main
pull_request:
paths-ignore: ["docs/**", "**.md"]

jobs:
track_benchmark_with_bencher:
name: Track Benchmarks with Bencher
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Bencher CLI
uses: bencherdev/bencher@main

- name: Track base Benchmarks
run: |
bencher run \
--project tailcall-2192953494 \
--token ${{ secrets.BENCHER_API_TOKEN }} \
--adapter rust_criterion \
--err \
'cargo bench'
Loading