Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Criterion Compare PRs

v2.0.0

Criterion Compare PRs

play

Criterion Compare PRs

Run Criterion against PRs

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Criterion Compare PRs

uses: boa-dev/[email protected]

Learn more about this action in boa-dev/criterion-compare-action

Choose a version

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

Example benchmark comparison comment

Usage

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 }}