Skip to content

Commit

Permalink
Added some Continuous Benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenge committed Sep 12, 2024
1 parent d22c2d5 commit 9d90b35
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci-bdnbenchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d90b35

Please sign in to comment.