()
| 17 | |
| 18 | /** Extra worker flags for CodSpeed CPU simulation, not walltime benchmarks. */ |
| 19 | export function cpuSimulationExecArgv() { |
| 20 | const mode = codspeedRunnerMode() |
| 21 | if (mode === 'simulation' || mode === 'instrumentation') { |
| 22 | // CodSpeed supplies --no-opt, which only disables TurboFan on Node 24. |
| 23 | // Maglev can still compile and inline hot functions between measured runs. |
| 24 | // Compile baseline code on first use, so warmup does not leave functions |
| 25 | // near Sparkplug's later tier-up/batch-compilation thresholds. |
| 26 | // V8 renamed --scavenge-task in Node 20; CodSpeed's old flag is omitted. |
| 27 | // Keep minor GC tied to allocations instead of scheduled foreground tasks. |
| 28 | // Fix the initial/minimum old-generation allocation budget. This can skip |
| 29 | // automatic full collections below the budget; minor GC remains enabled. |
| 30 | return [ |
| 31 | '--no-maglev', |
| 32 | '--always-sparkplug', |
| 33 | '--no-minor-gc-task', |
| 34 | '--initial-old-space-size=512', |
| 35 | ] |
| 36 | } |
| 37 | return [] |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Per-bench lifecycle for apps that a bench prepares and disposes outside |
no test coverage detected