Compile benchmark JavaScript with Sparkplug on first call

CodSpeed's simulation runner warms up before measuring a single call.
Use --always-sparkplug so functions exercised during warmup compile
immediately rather than waiting for Sparkplug's batch threshold.
This commit is contained in:
Calixte Denizet
2026-10-19 10:33:36 +02:00
parent bca81b5d47
commit e30d054ca7
+2 -1
View File
@@ -100,7 +100,8 @@ export default defineConfig({
include: [],
// Compile WebAssembly with TurboFan only to avoid timing variation from
// background tier-up from Liftoff.
execArgv: ["--no-liftoff"],
// Compile JavaScript with Sparkplug on first call to avoid delayed batches.
execArgv: ["--no-liftoff", "--always-sparkplug"],
benchmark: {
include: ["test/benchmarks/**/*.bench.js"],
},