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: added bencher to track benchmarks #1367

Closed
wants to merge 20 commits into from
Closed
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/track_benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Track Benchmark

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

jobs:
track_benchmark_with_bencher:
name: Track Benchmarks with Bencher
permissions:
pull-requests: write
contents: write
runs-on: benchmarking-runner
env:
BENCHER_PROJECT: tailcall
BENCHER_TESTBED: benchmarking-runner
BENCHER_ADAPTER: rust_criterion
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 \
--if-branch '${{ github.event.pull_request.head.ref }}' \
--else-if-branch '${{ github.event.pull_request.base.ref }}' \
--else-if-branch main \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
--ci-id '${{ github.event.pull_request.number }}' \
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
--err \
'cargo bench'
alankritdabral marked this conversation as resolved.
Show resolved Hide resolved
Loading