File tree Expand file tree Collapse file tree 7 files changed +129
-400
lines changed Expand file tree Collapse file tree 7 files changed +129
-400
lines changed Original file line number Diff line number Diff line change 1
- name : Benchmarks
1
+ name : Benchmarking
2
2
3
3
on :
4
4
push :
7
7
tags :
8
8
- " *"
9
9
pull_request :
10
- branches :
11
- - main
12
-
13
- env :
14
- RUST_BACKTRACE : 1
15
- CARGO_TERM_COLOR : always
10
+ workflow_dispatch :
16
11
17
12
jobs :
18
- benchmark :
19
- name : Benchmarking
13
+ benchmarking :
14
+ name : Benchmarking (API)
20
15
runs-on : ubuntu-latest
16
+ env :
17
+ CARGO : cargo
18
+ RUST_BACKTRACE : 1
21
19
strategy :
22
- fail-fast : true
20
+ fail-fast : false
23
21
matrix :
24
22
include :
25
- - name : BINEX Benchmark
26
- folder : " binex"
23
+ - bench : hatanaka
24
+ sample_size : 100
25
+ - bench : parsing
26
+ sample_size : 1000
27
+ - bench : formatting
28
+ sample_size : 1000
29
+
27
30
steps :
28
31
- name : Checkout sources
29
32
uses : actions/checkout@v4
33
+
30
34
- name : Install stable toolchain
31
35
uses : dtolnay/rust-toolchain@master
32
36
with :
33
37
toolchain : stable
34
- - name : ${{ matrix.name }}
35
- run : cargo bench -p ${{ matrix.folder }} > benchmark.txt
36
-
37
- - name : Parse and publish summary
38
- run : python tools/parse_crit_benchmark.py < benchmark.txt >> $GITHUB_STEP_SUMMARY
38
+
39
+ - name : Bench
40
+ run : cargo bench --bench ${{ matrix.bench }} -- --sample-size ${{ matrix.sample_size }} > ${{ matrix.bench }}.txt
41
+
42
+ - name : Upload Results
43
+ run : python tools/parse_crit_benchmark.py < ${{ matrix.bench }}.txt >> $GITHUB_STEP_SUMMARY
Original file line number Diff line number Diff line change @@ -160,7 +160,11 @@ rand = "0.8.4"
160
160
flate2 = " 1"
161
161
162
162
[[bench ]]
163
- name = " observation"
163
+ name = " parsing"
164
+ harness = false
165
+
166
+ [[bench ]]
167
+ name = " formatting"
164
168
harness = false
165
169
166
170
[[bench ]]
You can’t perform that action at this time.
0 commit comments