Commit 667e991
committed
Reduce perf-lotsofthreads iterations 10x in Debug
The benchmark's purpose is to stress the cross-thread free path
under contention, which is already observable at much lower
iteration counts. Debug builds carry full instrumentation and run
~10x slower per iteration, so 200k iterations across 8 threads
makes this single test dominate Debug ctest wall-time without
producing any additional contention coverage relative to a smaller
count.
Divide iterations by 10 when NDEBUG is not defined. Release builds
keep the original counts (200000 / 50000 depending on platform and
sanitizer) so the benchmark's signal is unchanged where it matters.
Local measurement on Debug:
perf-lotsofthreads-fast: ~136s -> 13.6s
perf-lotsofthreads-check: ~500s -> 49.7s
The test is on the concurrency-stress exclusion list and so is
deliberately not affected by the --smoke knob; reducing iterations
in Debug here is the right lever.1 parent c615edb commit 667e991
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
0 commit comments