@@ -17,17 +17,12 @@ defaults:
1717 shell : bash
1818
1919jobs :
20- benchmark :
21- name : Benchmark
22- runs-on : ubuntu-latest
20+ build :
21+ name : Prepare
22+ runs-on : ubuntu-24.04-arm
2323 steps :
2424 - uses : actions/checkout@v5
2525
26- - name : Setup Rust
27- uses : dtolnay/rust-toolchain@stable
28- with :
29- targets : x86_64-unknown-linux-gnu
30-
3126 - uses : actions/setup-node@v5
3227 with :
3328 node-version : 22
@@ -38,18 +33,43 @@ jobs:
3833 run : node download-fixtures.js
3934 env :
4035 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ - name : Upload Fixtures
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : benchmark-fixtures
40+ path : fixtures
41+ - name : Upload rxjs
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : benchmark-rxjs
45+ path : node_modules/rxjs
4146
47+ run :
48+ runs-on : codspeed-macro
49+ needs : build
50+ steps :
51+ - uses : actions/checkout@v5
52+ - name : Setup Rust
53+ uses : dtolnay/rust-toolchain@stable
4254 - uses : taiki-e/install-action@v2
4355 with :
4456 tool : cargo-codspeed
45-
4657 - name : Build benchmark
47- run : cargo codspeed build --features codspeed
48-
58+ run : cargo codspeed build --measurement-mode=walltime --features codspeed
59+ - name : Download fixtures
60+ uses : actions/download-artifact@v5
61+ with :
62+ name : benchmark-fixtures
63+ path : fixtures
64+ - name : Download rxjs
65+ uses : actions/download-artifact@v5
66+ with :
67+ name : benchmark-rxjs
68+ path : node_modules/rxjs
4969 - name : Run benchmark
5070 uses : CodSpeedHQ/action@v4
5171 timeout-minutes : 15
5272 with :
5373 run : cargo codspeed run
54- mode : instrumentation
74+ mode : walltime
5575 token : ${{ secrets.CODSPEED_TOKEN }}
0 commit comments