Skip to content

Commit 101e51d

Browse files
konardclaude
andcommitted
Run benchmark tests (--test mode) in CI instead of full benchmarks
Full criterion benchmarks take >30 minutes even with reduced settings. Changed CI to run `cargo bench -- --test` which: - Validates benchmarks compile and execute correctly - Runs each benchmark once without statistical analysis - Completes in seconds rather than minutes Also reduced link counts to 100 for faster CI validation. For actual performance measurements, run locally: BENCHMARK_LINK_COUNT=1000 BACKGROUND_LINK_COUNT=3000 cargo bench Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 328f20b commit 101e51d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/rust.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
restore-keys: |
7373
${{ runner.os }}-cargo-bench-
7474
75-
- name: Run benchmarks
76-
run: cargo bench
75+
- name: Run benchmark tests
76+
run: cargo bench -- --test
7777
env:
78-
BENCHMARK_LINK_COUNT: 1000
79-
BACKGROUND_LINK_COUNT: 3000
78+
BENCHMARK_LINK_COUNT: 100
79+
BACKGROUND_LINK_COUNT: 100

0 commit comments

Comments
 (0)