You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Criterion Compare PRs
v2.0.0
Compare the performance of a PR against master
⚠️ Performance benchmarks provided by this action may fluctuate as load on GitHub Actions does. Run benchmarks locally before making any decisions based on the results.
A GitHub action that will compare the benchmark output between a PR and master, using the project's criterion.rs benchmarks.
Create a .github/workflows/pull_request.yml
file in your repo:
on: [pull_request]
name: benchmark pull requests
jobs:
runBenchmark:
name: run benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jasonwilliams/criterion-compare-action@move_to_actions
with:
cwd: "subDirectory (optional)"
token: ${{ secrets.GITHUB_TOKEN }}