criterion-compare
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.
Example
Usage
Create a .github/workflows/pull_request.yml
workflow file in your repo:
# .github/workflows/pull_request.yml
on: [pull_request]
name: benchmark pull requests
jobs:
runBenchmark:
name: run benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: run benchmark
uses: matchai/criterion-compare-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}