From 902a422af196b2211c1e4913ffa6b92e9accb658 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Thu, 8 Aug 2024 18:16:22 +0200 Subject: [PATCH] Add automatic benchmarks Signed-off-by: Heinz N. Gies --- .github/workflows/criterion.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/criterion.yml 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 }}