mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-11-30 16:37:18 +01:00
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:
@@ -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"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user