-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (84 loc) · 3.25 KB
/
Copy pathbenchmarkdotnet.yml
File metadata and controls
93 lines (84 loc) · 3.25 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: LuhnDotNet - Benchmark.Net
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'toc.yml'
- 'docfx.json'
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Run Benchmark.Net for LuhnDotNet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4.3.1
with:
dotnet-version: 8.0.404
- name: Setup .NET 9
uses: actions/setup-dotnet@v4.3.1
with:
dotnet-version: 9.0.100
- name: Run benchmark project
run: dotnet run --exporters JSON --filter '*' --project benchmark/LuhnDotNetBenchmark.csproj --property:Configuration=Release --runtimes net8.0 net9.0 -f net9.0
- name: Store helper benchmark results
uses: rhysd/github-action-benchmark@v1
with:
name: Analyze helper benchmark results
tool: 'benchmarkdotnet'
gh-pages-branch: helper-benchmark-results
benchmark-data-dir-path: ./
output-file-path: BenchmarkDotNet.Artifacts/results/LuhnDotNetBenchmark.HelperBenchmark-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@shinji-san'
- name: Store Luhn benchmark results
uses: rhysd/github-action-benchmark@v1
with:
name: Analyze Luhn benchmark results
tool: 'benchmarkdotnet'
gh-pages-branch: luhn-benchmark-results
benchmark-data-dir-path: ./
output-file-path: BenchmarkDotNet.Artifacts/results/LuhnDotNetBenchmark.LuhnBenchmark-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@shinji-san'
- name: Store Mod11AscendingWeights benchmark results
uses: rhysd/github-action-benchmark@v1
with:
name: Analyze Mod11AscendingWeights benchmark results
tool: 'benchmarkdotnet'
gh-pages-branch: mod11asc-benchmark-results
benchmark-data-dir-path: ./
output-file-path: BenchmarkDotNet.Artifacts/results/LuhnDotNetBenchmark.Mod11AscendingWeightBenchmark-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@shinji-san'
- name: Store Damm benchmark results
uses: rhysd/github-action-benchmark@v1
with:
name: Analyze Damm benchmark results
tool: 'benchmarkdotnet'
gh-pages-branch: damm-benchmark-results
benchmark-data-dir-path: ./
output-file-path: BenchmarkDotNet.Artifacts/results/LuhnDotNetBenchmark.DammBenchmark-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@shinji-san'