From 9d90b358b7f6ff23d5a580b30d48090b890fe938 Mon Sep 17 00:00:00 2001 From: darrenge Date: Thu, 12 Sep 2024 13:13:32 -0700 Subject: [PATCH] Added some Continuous Benchmarking --- .github/workflows/ci-bdnbenchmark.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-bdnbenchmark.yml b/.github/workflows/ci-bdnbenchmark.yml index d47b1e7b87..b958152bec 100644 --- a/.github/workflows/ci-bdnbenchmark.yml +++ b/.github/workflows/ci-bdnbenchmark.yml @@ -66,4 +66,24 @@ jobs: path: | ./test/BDNPerfTests/errorlog if: ${{ always() }} - + + # Download previous benchmark result from cache (if exists) + - name: Download previous benchmark data + uses: actions/cache@v4 + with: + path: ./cache + key: ${{ runner.os }}-benchmark + # Run `github-action-benchmark` action + - name: Store benchmark result + uses: benchmark-action/github-action-benchmark@v1 + with: + # What benchmark tool the output.txt came from + tool: 'benchmarkdotnet' + # Where the output from the benchmark tool is stored + output-file-path: ./test/BDNPerfTests/results/ResultsDir-${{ matrix.os }}-${{ matrix.framework }}-${{ matrix.configuration }}-${{ matrix.test }} + # Where the previous data file is stored + external-data-json-path: ./cache/benchmark-data.json + # Workflow will fail when an alert happens + fail-on-alert: true + # Upload the updated cache file for the next job by actions/cache +