MCPcopy Create free account
hub / github.com/TanStack/router / cpuSimulationExecArgv

Function cpuSimulationExecArgv

benchmarks/cpu-simulation.ts:19–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18/** Extra worker flags for CodSpeed CPU simulation, not walltime benchmarks. */
19export 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

Callers 15

vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90

Calls 1

codspeedRunnerModeFunction · 0.85

Tested by

no test coverage detected