Skip to content

Commit

Permalink
updates to benchmarks (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Jan 29, 2024
1 parent 8dc0eff commit 2bc88b6
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/benchmark-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,20 @@ jobs:
with:
dotnet-version: '8.x'
- name: Run benchmark
run: cd benchmark && dotnet run -c release -f net8.0 --exporters json
run: cd benchmark && dotnet run -c release -f net8.0 --filter * --exporters json

- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark

- name: Store CreateAuthorizationHeader result
- name: Store TokenAcquisitionBenchmark benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
name: CreateAuthorizationHeader
name: TokenAcquisitionBenchmarks
tool: 'benchmarkdotnet'
output-file-path: benchmark/BenchmarkDotNet.Artifacts/results/Benchmarks.CreateAuthorizationHeader-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '130%'
comment-on-alert: true
fail-on-alert: true
summary-always: true
gh-pages-branch: gh-pages
benchmark-data-dir-path: benchmarks

- name: Store GetTokenAcquirer result
uses: benchmark-action/github-action-benchmark@v1
with:
name: GetTokenAcquirer
tool: 'benchmarkdotnet'
output-file-path: benchmark/BenchmarkDotNet.Artifacts/results/Benchmarks.GetTokenAcquirer-report-full-compressed.json
output-file-path: benchmark/BenchmarkDotNet.Artifacts/results/Benchmarks.TokenAcquisitionBenchmark-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
Expand Down

0 comments on commit 2bc88b6

Please # to comment.