-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (69 loc) · 2.74 KB
/
dotnet_benchmark_runner.yml
File metadata and controls
79 lines (69 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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'