dalloriam / criterion-compare-action

⚡️📊 Compare the performance of Rust project branches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

⚡️📊 Compare the performance of Rust project branches

License:ISC License


Languages

Language:JavaScript 81.7%Language:Dockerfile 18.3%