Skip to content

Commit

Permalink
Added tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaytak committed Aug 3, 2023
1 parent 8143422 commit 1e0ca94
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/benchmark-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ jobs:
path: ./cache
key: ${{ runner.os }}-benchmark

- name: Store AcquireTokenForClientCacheTests result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'benchmarkdotnet'
output-file-path: tests/Microsoft.Identity.Test.Performance/BenchmarkDotNet.Artifacts/results/Microsoft.Identity.Test.Performance.AcquireTokenForClientCacheTests-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
#external-data-json-path: ./cache/benchmark-data.json
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '1%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@pmaytak'
summary-always: true
gh-pages-branch: gh-pages
benchmark-data-dir-path: benchmarks

- name: Store AcquireTokenNoCacheTests result
uses: benchmark-action/github-action-benchmark@v1
with:
Expand Down

1 comment on commit 1e0ca94

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 0.01.

Benchmark suite Current: 1e0ca94 Previous: 8143422 Ratio
Microsoft.Identity.Test.Performance.AcquireTokenNoCacheTests.AcquireTokenForClient_TestAsync 472067.92045454547 ns (± 44882.6092489463) 388529.9246575342 ns (± 19113.791091424166) 1.22
Microsoft.Identity.Test.Performance.AcquireTokenNoCacheTests.AcquireTokenOnBehalfOf_TestAsync 583951.6477272727 ns (± 47532.78660791473) 535318.6153846154 ns (± 5281.898704355936) 1.09

This comment was automatically generated by workflow using github-action-benchmark.

CC: @pmaytak

Please sign in to comment.