-
-
Notifications
You must be signed in to change notification settings - Fork 19
96 lines (74 loc) · 2.78 KB
/
benchmarks.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
93
94
95
96
name: Benchmarks
on:
push:
branches:
- master
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
duration:
name: Benchmark duration
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Bench (with default features)
run: cargo bench --bench crit_duration > crit_duration.txt
- name: Bench (no default features)
run: cargo bench --no-default-features --bench crit_duration
- name: Parse benchmark output and add benchmark results to GitHub Actions summary
run: python benches/parse_crit_benchmark.py < crit_duration.txt >> $GITHUB_STEP_SUMMARY
epoch:
name: Benchmark epoch
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Bench (with default features)
run: cargo bench --bench crit_epoch > crit_epoch.txt
- name: Bench (no default features)
run: cargo bench --no-default-features --bench crit_epoch
- name: Parse benchmark output and add benchmark results to GitHub Actions summary
run: python benches/parse_crit_benchmark.py < crit_epoch.txt >> $GITHUB_STEP_SUMMARY
iai_duration:
name: Benchmark iai duration
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Bench (with default features)
run: cargo bench --bench iai_duration > iai_duration.txt
- name: Bench (no default features)
run: cargo bench --no-default-features --bench iai_duration
- name: Parse benchmark output and add benchmark results to GitHub Actions summary
run: python benches/parse_iai_benchmark.py < iai_duration.txt >> $GITHUB_STEP_SUMMARY
iai_epoch:
name: Benchmark iai epoch
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Bench (with default features)
run: cargo bench --bench iai_epoch > iai_epoch.txt
- name: Bench (no default features)
run: cargo bench --no-default-features --bench iai_epoch
- name: Parse benchmark output and add benchmark results to GitHub Actions summary
run: python benches/parse_iai_benchmark.py < iai_epoch.txt >> $GITHUB_STEP_SUMMARY