-
Notifications
You must be signed in to change notification settings - Fork 27
92 lines (68 loc) · 2 KB
/
bench.yml
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
name: Benchmark
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
benchmark-x86:
name: Benchmark X86
runs-on: buildjet-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Update rust
run: rustup update
- name: Benchmark
run: cargo bench --bench throughput --features bench-plot
- uses: actions/upload-artifact@v3
with:
name: benches
path: benches/throughput/x86_64.svg
benchmark-x86-avx2:
name: Benchmark X86 AVX2
runs-on: buildjet-2vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Update rust
run: rustup update
- name: Switch to nightly rust
run: rustup default nightly
- name: Benchmark
run: cargo bench --bench throughput --features bench-plot,hybrid
- uses: actions/upload-artifact@v3
with:
name: benches
path: benches/throughput/x86_64-hybrid.svg
benchmark-arm:
name: Benchmark ARM
runs-on: buildjet-2vcpu-ubuntu-2204-arm
steps:
- uses: actions/checkout@v4
- name: Update rust
run: rustup update
- name: Benchmark
run: cargo bench --bench throughput --features bench-plot
- uses: actions/upload-artifact@v3
with:
name: benches
path: benches/throughput/aarch64.svg
commit:
name: Commit & Push
runs-on: buildjet-2vcpu-ubuntu-2204
needs: [benchmark-x86, benchmark-x86-avx2, benchmark-arm]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download Benchmark Results
uses: actions/download-artifact@v3
with:
name: benches
path: benches/throughput
- name: Commit & Push Benchmark Results
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: '*.svg'
commit_message: Update Benchmark Results
commit_user_name: Benchmark Bot
commit_user_email: [email protected]
commit_author: Benchmark Bot <[email protected]>