-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.41 KB
/
benchmarks.yaml
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
name: benchmarks
on:
push:
tags:
- "v*"
branches: [master]
paths:
- src/**
pull_request:
branches: [master]
paths:
- src/**
# Declare default permissions as read only.
permissions: read-all
jobs:
benchmark:
runs-on: ubuntu-22.04
permissions:
contents: write
pages: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: "8.0.x"
- name: Run benchmark
run: dotnet run -c Release --project=src/Vfps.Benchmarks
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@70405016b032d44f409e4b1b451c40215cbe2393 # v1.18.0
with:
name: PseudonymGeneratorBenchmarks
tool: "benchmarkdotnet"
output-file-path: BenchmarkDotNet.Artifacts/results/Vfps.Benchmarks.PseudonymGeneratorBenchmarks-report-full-compressed.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{github.event_name != 'pull_request'}}
# Show alert with commit comment on detecting possible performance regression
alert-threshold: "200%"
comment-on-alert: true
fail-on-alert: true