.NET Benchmark Runner #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Benchmark Runner | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
permissions: | |
# deployments permission to deploy GitHub pages website | |
deployments: write | |
# contents permission to update benchmark contents in gh-pages branch | |
contents: write | |
jobs: | |
benchmark: | |
name: Performance regression check | |
runs-on: ubuntu-latest | |
env: | |
TERM: xterm | |
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.x | |
- name: Run benchmark | |
run: dotnet run --configuration Release --exporters json --filter '*' | |
working-directory: Tests/TyKonKet.BarcodeGenerator.CB | |
- name: Store Ean8Encoder benchmark results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Ean8Encoder | |
tool: 'benchmarkdotnet' | |
output-file-path: Tests/TyKonKet.BarcodeGenerator.CB/BenchmarkDotNet.Artifacts/results/TyKonKet.BarcodeGenerator.CB.Benchmarks.Ean8Encoder-report-full-compressed.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
benchmark-data-dir-path: '' | |
alert-threshold: '200%' | |
comment-on-alert: true | |
#summary-always: true | |
alert-comment-cc-users: '@TyKonKet' | |
- name: Store Ean13Encoder benchmark results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Ean13Encoder | |
tool: 'benchmarkdotnet' | |
output-file-path: Tests/TyKonKet.BarcodeGenerator.CB/BenchmarkDotNet.Artifacts/results/TyKonKet.BarcodeGenerator.CB.Benchmarks.Ean13Encoder-report-full-compressed.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
benchmark-data-dir-path: '' | |
alert-threshold: '200%' | |
comment-on-alert: true | |
#summary-always: true | |
alert-comment-cc-users: '@TyKonKet' | |
- name: Store UpcaEncoder benchmark results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: UpcaEncoder | |
tool: 'benchmarkdotnet' | |
output-file-path: Tests/TyKonKet.BarcodeGenerator.CB/BenchmarkDotNet.Artifacts/results/TyKonKet.BarcodeGenerator.CB.Benchmarks.UpcaEncoder-report-full-compressed.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
benchmark-data-dir-path: '' | |
alert-threshold: '200%' | |
comment-on-alert: true | |
#summary-always: true | |
alert-comment-cc-users: '@TyKonKet' | |
- name: Store Isbn13Encoder benchmark results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Isbn13Encoder | |
tool: 'benchmarkdotnet' | |
output-file-path: Tests/TyKonKet.BarcodeGenerator.CB/BenchmarkDotNet.Artifacts/results/TyKonKet.BarcodeGenerator.CB.Benchmarks.Isbn13Encoder-report-full-compressed.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
benchmark-data-dir-path: '' | |
alert-threshold: '200%' | |
comment-on-alert: true | |
#summary-always: true | |
alert-comment-cc-users: '@TyKonKet' | |
- name: Store Code93Encoder benchmark results | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Code93Encoder | |
tool: 'benchmarkdotnet' | |
output-file-path: Tests/TyKonKet.BarcodeGenerator.CB/BenchmarkDotNet.Artifacts/results/TyKonKet.BarcodeGenerator.CB.Benchmarks.Code93Encoder-report-full-compressed.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
benchmark-data-dir-path: '' | |
alert-threshold: '200%' | |
comment-on-alert: true | |
#summary-always: true | |
alert-comment-cc-users: '@TyKonKet' |