diff --git a/.github/workflows/criterion.yml b/.github/workflows/criterion.yml new file mode 100644 index 0000000..4f56887 --- /dev/null +++ b/.github/workflows/criterion.yml @@ -0,0 +1,14 @@ +on: [pull_request] +name: benchmark pull requests +jobs: + runBenchmark: + name: run benchmark + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: boa-dev/criterion-compare-action@v3 + with: + # Optional. Compare only this benchmark target + benchName: "insert" + # Needed. The name of the branch to compare with. This default uses the branch which is being pulled against + branchName: ${{ github.base_ref }}