-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (103 loc) · 4.39 KB
/
benchmark.yml
File metadata and controls
105 lines (103 loc) · 4.39 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
94
95
96
97
98
99
100
101
102
103
104
105
name: Benchmarker
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
comparison:
name: Comparison Marshalling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Run
run: dotnet run --project tests/DynamoDBGenerator.SourceGenerator.Benchmarks --configuration 'Release' -- --exporters 'JSON' --filter '*Marshalling.Comparison*' --memory --job 'Default'
- name: Store
uses: rhysd/github-action-benchmark@v1
with:
name: Comparison Marshalling
tool: 'benchmarkdotnet'
output-file-path: BenchmarkDotNet.Artifacts/results/DynamoDBGenerator.SourceGenerator.Benchmarks.Benchmarks.Marshalling.ComparisonBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
benchmark-data-dir-path: 'benchmarks/marshalling/comparison'
comment-on-alert: false
fail-on-alert: false
alert-comment-cc-users: '@inputfalken'
temporal:
name: Temporal Marshalling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Run
run: dotnet run --project tests/DynamoDBGenerator.SourceGenerator.Benchmarks --configuration 'Release' -- --exporters 'JSON' --filter '*TemporalBenchmarks*' --memory --job 'Default'
- name: Store
uses: rhysd/github-action-benchmark@v1
with:
name: Temporal Marshalling
tool: 'benchmarkdotnet'
output-file-path: BenchmarkDotNet.Artifacts/results/DynamoDBGenerator.SourceGenerator.Benchmarks.Benchmarks.Marshalling.TemporalBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
benchmark-data-dir-path: 'benchmarks/marshalling/temporal'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@inputfalken'
primitve:
name: Primitive Marshalling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Run
run: dotnet run --project tests/DynamoDBGenerator.SourceGenerator.Benchmarks --configuration 'Release' -- --exporters 'JSON' --filter '*PrimitiveBenchmarks*' --memory --job 'Default'
- name: Store
uses: rhysd/github-action-benchmark@v1
with:
name: Primitive Marshalling
tool: 'benchmarkdotnet'
output-file-path: BenchmarkDotNet.Artifacts/results/DynamoDBGenerator.SourceGenerator.Benchmarks.Benchmarks.Marshalling.PrimitiveBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: 'benchmarks/marshalling/primitive'
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@inputfalken'
collection:
name: Collection Marshalling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Run
run: dotnet run --project tests/DynamoDBGenerator.SourceGenerator.Benchmarks --configuration 'Release' -- --exporters 'JSON' --filter '*CollectionBenchmarks*' --memory --job 'Default'
- name: Store
uses: rhysd/github-action-benchmark@v1
with:
name: Collection Marshalling
tool: 'benchmarkdotnet'
output-file-path: BenchmarkDotNet.Artifacts/results/DynamoDBGenerator.SourceGenerator.Benchmarks.Benchmarks.Marshalling.CollectionBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
benchmark-data-dir-path: 'benchmarks/marshalling/collection'
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@inputfalken'