Skip to content

Commit fe1e14c

Browse files
authored
chore: limit threads for codspeed benchmark (#12763)
Limit threads
1 parent 8c8a402 commit fe1e14c

File tree

3 files changed

+6
-104
lines changed

3 files changed

+6
-104
lines changed

.github/actions/codspeed/action.yaml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/reusable-build-bench.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ jobs:
7777
run: pnpm run build:js
7878

7979
- name: Run benchmark
80-
uses: ./.github/actions/codspeed
80+
uses: CodSpeedHQ/action@0700edb451d0e9f2426f99bd6977027e550fb2a6 # https://github.com/CodSpeedHQ/action/releases/tag/v4.7.0
8181
timeout-minutes: 30
82+
env:
83+
RAYON_NUM_THREADS: 1
8284
with:
85+
mode: 'simulation'
8386
run: pnpm run bench:ci
8487
token: ${{ secrets.CODSPEED_TOKEN }}

xtask/benchmark/benches/groups/bundle.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ fn bundle_benchmark(c: &mut Criterion) {
2222

2323
// Codspeed can only handle to up to 500 threads by default
2424
let rt = runtime::Builder::new_multi_thread()
25-
.max_blocking_threads(256)
25+
.worker_threads(8)
26+
.max_blocking_threads(8)
2627
.build()
2728
.unwrap();
2829

0 commit comments

Comments
 (0)