From 22100d4857c47ac33b44f2ae2a97f307a2a6446a Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 20 Aug 2025 13:39:46 +0200 Subject: [PATCH 1/7] try to supoprt subitems --- JetStreamDriver.js | 58 +++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index eaf430e..324f8c1 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -41,6 +41,7 @@ globalThis.testList ??= undefined; globalThis.startDelay ??= undefined; globalThis.shouldReport ??= false; globalThis.prefetchResources ??= true; +globalThis.printGroupedBenchmarks ??= true; function getIntParam(urlParams, key) { const rawValue = urlParams.get(key); @@ -337,26 +338,7 @@ class Driver { let text = ""; for (const benchmark of this.benchmarks) { - const description = Object.keys(benchmark.subScores()); - description.push("Score"); - - const scoreIds = benchmark.scoreIdentifiers(); - const overallScoreId = scoreIds.pop(); - - if (isInBrowser) { - text += - `
-

${benchmark.name} i

-

 

-

 

-

`; - for (let i = 0; i < scoreIds.length; i++) { - const scoreId = scoreIds[i]; - const label = description[i]; - text += ` ` - } - text += `

`; - } + text += benchmark.prepareToRun(); } if (!isInBrowser) @@ -808,6 +790,28 @@ class Benchmark { return code; } + prepareToRun() { + const description = Object.keys(this.subScores()); + description.push("Score"); + + const scoreIds = this.scoreIdentifiers(); + const overallScoreId = scoreIds.pop(); + if (isInBrowser) + return + let text = `
+

${this.name} i

+

 

+

 

+

`; + for (let i = 0; i < scoreIds.length; i++) { + const scoreId = scoreIds[i]; + const label = description[i]; + text += ` ` + } + text += `

`; + return text; + } + async run() { if (this.isDone) throw new Error(`Cannot run Benchmark ${this.name} twice`); @@ -1169,6 +1173,15 @@ class GroupedBenchmark extends Benchmark { for (const benchmark of this.benchmarks) benchmark.prefetchResourcesForShell(); } + + prepareToRun() { + let text = super.prepareToRun(); + if (!globalThis.printGroupedBenchmarks) + return; + for (const benchmark of this.benchmarks) + text += benchmark.prepareToRun(); + return text; + } get files() { let files = []; @@ -1185,8 +1198,11 @@ class GroupedBenchmark extends Benchmark { let benchmark; try { this._state = BenchmarkState.RUNNING; - for (benchmark of this.benchmarks) + for (benchmark of this.benchmarks) { await benchmark.run(); + if (globalThis.printGroupedBenchmarks) + benchmark.updateUIAfterRun(); + } } catch (e) { this._state = BenchmarkState.ERROR; console.log(`Error in runCode of grouped benchmark ${benchmark.name}: `, e); From 82ca1bd93c2a93390d1ebb26bf37f5bfa841dc6b Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 20 Aug 2025 13:49:19 +0200 Subject: [PATCH 2/7] support details --- JetStreamDriver.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index 324f8c1..d355a2c 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -41,7 +41,7 @@ globalThis.testList ??= undefined; globalThis.startDelay ??= undefined; globalThis.shouldReport ??= false; globalThis.prefetchResources ??= true; -globalThis.printGroupedBenchmarks ??= true; +globalThis.details ??= false; function getIntParam(urlParams, key) { const rawValue = urlParams.get(key); @@ -80,6 +80,8 @@ if (typeof(URLSearchParams) !== "undefined") { globalThis.testWorstCaseCount = getIntParam(urlParameters, "worstCaseCount"); if (urlParameters.has("prefetchResources")) globalThis.prefetchResources = getBoolParam(urlParameters, "prefetchResources"); + if (urlParameters.has("details")) + globalThis.details = getBoolParam(urlParameters, "details"); } if (!globalThis.prefetchResources) @@ -337,9 +339,8 @@ class Driver { this.benchmarks.sort((a, b) => a.plan.name.toLowerCase() < b.plan.name.toLowerCase() ? 1 : -1); let text = ""; - for (const benchmark of this.benchmarks) { + for (const benchmark of this.benchmarks) text += benchmark.prepareToRun(); - } if (!isInBrowser) return; @@ -353,8 +354,8 @@ class Driver { resultsTable.innerHTML = text; document.getElementById("magic").textContent = ""; - document.addEventListener('keypress', function (e) { - if (e.which === 13) + document.addEventListener('keyup', (e) => { + if (e.key === "Enter") JetStream.start(); }); } @@ -796,8 +797,6 @@ class Benchmark { const scoreIds = this.scoreIdentifiers(); const overallScoreId = scoreIds.pop(); - if (isInBrowser) - return let text = `

${this.name} i

 

@@ -1176,10 +1175,10 @@ class GroupedBenchmark extends Benchmark { prepareToRun() { let text = super.prepareToRun(); - if (!globalThis.printGroupedBenchmarks) - return; - for (const benchmark of this.benchmarks) - text += benchmark.prepareToRun(); + if (globalThis.details) { + for (const benchmark of this.benchmarks) + text += benchmark.prepareToRun(); + } return text; } @@ -1200,7 +1199,7 @@ class GroupedBenchmark extends Benchmark { this._state = BenchmarkState.RUNNING; for (benchmark of this.benchmarks) { await benchmark.run(); - if (globalThis.printGroupedBenchmarks) + if (globalThis.details) benchmark.updateUIAfterRun(); } } catch (e) { From 7c08716465d76b20b158abb4f8f728144efcf846 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 20 Aug 2025 13:59:41 +0200 Subject: [PATCH 3/7] support cli flags --- JetStreamDriver.js | 23 ++++++++++++++++++++--- cli.js | 2 ++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index d355a2c..ce8572f 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -1060,11 +1060,15 @@ class Benchmark { updateUIBeforeRun() { if (!dumpJSONResults) - console.log(`Running ${this.name}:`); + this.updateUIBeforeRunInShell(); if (isInBrowser) this.updateUIBeforeRunInBrowser(); } + updateUIBeforeRunInShell() { + console.log(`Running ${this.name}:`); + } + updateUIBeforeRunInBrowser() { const containerUI = document.getElementById("results"); const resultsBenchmarkUI = document.getElementById(`benchmark-${this.name}`); @@ -1081,7 +1085,7 @@ class Benchmark { this.updateUIAfterRunInBrowser(scoreEntries); if (dumpJSONResults) return; - this.updateConsoleAfterRun(scoreEntries); + this.updateAfterRunInShell(scoreEntries); } updateUIAfterRunInBrowser(scoreEntries) { @@ -1123,7 +1127,7 @@ class Benchmark { plotContainer.innerHTML = `${circlesSVG}`; } - updateConsoleAfterRun(scoreEntries) { + updateAfterRunInShell(scoreEntries) { // FIXME: consider removing this mapping. // Rename for backwards compatibility. const legacyScoreNameMap = { @@ -1182,6 +1186,17 @@ class GroupedBenchmark extends Benchmark { return text; } + updateUIBeforeRunInShell() { + if (!globalThis.details) + super.updateUIBeforeRunInShell(); + } + + updateAfterRunInShell(scoreEntries) { + if (globalThis.details) + super.updateUIBeforeRunInShell(); + super.updateAfterRunInShell(scoreEntries); + } + get files() { let files = []; for (const benchmark of this.benchmarks) @@ -1198,6 +1213,8 @@ class GroupedBenchmark extends Benchmark { try { this._state = BenchmarkState.RUNNING; for (benchmark of this.benchmarks) { + if (globalThis.details) + benchmark.updateUIBeforeRun(); await benchmark.run(); if (globalThis.details) benchmark.updateUIAfterRun(); diff --git a/cli.js b/cli.js index 5429ccd..8bf1fd4 100644 --- a/cli.js +++ b/cli.js @@ -58,6 +58,8 @@ if ("--ramification" in cliFlags) globalThis.RAMification = true; if ("--no-prefetch" in cliFlags) globalThis.prefetchResources = false; +if ("--details" in cliFlags) + globalThis.details = true; if (cliArgs.length) globalThis.testList = cliArgs; From 6b2f65eec338a0548cf96a9dc05900a2a7b7900b Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 3 Sep 2025 09:46:18 +0200 Subject: [PATCH 4/7] addressing review commentss --- JetStreamDriver.js | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index 8c230bd..151cba0 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -335,15 +335,10 @@ class Driver { } } - prepareToRun() { - this.benchmarks.sort((a, b) => a.plan.name.toLowerCase() < b.plan.name.toLowerCase() ? 1 : -1); - + prepareBrowserUI() { let text = ""; for (const benchmark of this.benchmarks) - text += benchmark.prepareToRun(); - - if (!isInBrowser) - return; + text += benchmark.prepareBrowserUI(); const timestamp = performance.now(); document.getElementById('jetstreams').style.backgroundImage = `url('jetstreams.svg?${timestamp}')`; @@ -383,7 +378,9 @@ class Driver { if (isInBrowser) window.addEventListener("error", (e) => this.pushError("driver startup", e.error)); await this.prefetchResources(); - this.prepareToRun(); + this.benchmarks.sort((a, b) => a.plan.name.toLowerCase() < b.plan.name.toLowerCase() ? 1 : -1); + if (isInBrowser) + this.prepareBrowserUI(); this.isReady = true; if (isInBrowser) { globalThis.dispatchEvent(new Event("JetStreamReady")); @@ -796,13 +793,13 @@ class Benchmark { return code; } - prepareToRun() { + prepareBrowserUI() { const description = Object.keys(this.subScores()); description.push("Score"); const scoreIds = this.scoreIdentifiers(); const overallScoreId = scoreIds.pop(); - let text = `
+ let text = `

${this.name} i

 

 

@@ -1089,7 +1086,7 @@ class Benchmark { this.updateUIAfterRunInBrowser(scoreEntries); if (dumpJSONResults) return; - this.updateAfterRunInShell(scoreEntries); + this.updateConsoleAfterRun(scoreEntries); } updateUIAfterRunInBrowser(scoreEntries) { @@ -1131,7 +1128,7 @@ class Benchmark { plotContainer.innerHTML = `${circlesSVG}`; } - updateAfterRunInShell(scoreEntries) { + updateConsoleAfterRun(scoreEntries) { // FIXME: consider removing this mapping. // Rename for backwards compatibility. const legacyScoreNameMap = { @@ -1181,11 +1178,11 @@ class GroupedBenchmark extends Benchmark { benchmark.prefetchResourcesForShell(); } - prepareToRun() { - let text = super.prepareToRun(); + prepareBrowserUI() { + let text = super.prepareBrowserUI(); if (globalThis.details) { for (const benchmark of this.benchmarks) - text += benchmark.prepareToRun(); + text += benchmark.prepareBrowserUI(); } return text; } @@ -1195,10 +1192,10 @@ class GroupedBenchmark extends Benchmark { super.updateUIBeforeRunInShell(); } - updateAfterRunInShell(scoreEntries) { + updateConsoleAfterRun(scoreEntries) { if (globalThis.details) super.updateUIBeforeRunInShell(); - super.updateAfterRunInShell(scoreEntries); + super.updateConsoleAfterRun(scoreEntries); } get files() { From 83fabfe5b46caccf5a8f23279f3332a7a6d00823 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 3 Sep 2025 09:49:06 +0200 Subject: [PATCH 5/7] change flag and add shell test --- cli.js | 2 +- tests/run-shell.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 8bf1fd4..421fe96 100644 --- a/cli.js +++ b/cli.js @@ -58,7 +58,7 @@ if ("--ramification" in cliFlags) globalThis.RAMification = true; if ("--no-prefetch" in cliFlags) globalThis.prefetchResources = false; -if ("--details" in cliFlags) +if ("--group-details" in cliFlags) globalThis.details = true; if (cliArgs.length) globalThis.testList = cliArgs; diff --git a/tests/run-shell.mjs b/tests/run-shell.mjs index 1b626a7..221c156 100644 --- a/tests/run-shell.mjs +++ b/tests/run-shell.mjs @@ -110,6 +110,7 @@ async function runTests() { success &&= await runTest("Run UnitTests", () => sh(shellBinary, UNIT_TEST_PATH)); success &&= await runCLITest("Run Single Suite", shellBinary, "proxy-mobx"); success &&= await runCLITest("Run Tag No Prefetch", shellBinary, "proxy", "--no-prefetch"); + success &&= await runCLITest("Run Grouped with Details", shellBinary, "SunSpider", "--group-details"); success &&= await runCLITest("Run Disabled Suite", shellBinary, "disabled"); success &&= await runCLITest("Run Default Suite", shellBinary); if (!success) From ff14f7e3fdded6ed1e28fa1a4cc2a534a49e38f7 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 17 Sep 2025 16:55:39 +0200 Subject: [PATCH 6/7] address comments --- JetStreamDriver.js | 141 +++++---------------------------------------- cli.js | 40 ++----------- params.js | 6 +- 3 files changed, 26 insertions(+), 161 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index 1f1b37b..6969c2b 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -30,118 +30,7 @@ const measureTotalTimeAsSubtest = false; // Once we move to preloading all resou const defaultIterationCount = 120; const defaultWorstCaseCount = 4; -<<<<<<< HEAD -globalThis.performance ??= Date; -globalThis.RAMification ??= false; -globalThis.testIterationCount ??= undefined; -globalThis.testIterationCountMap ??= new Map(); -globalThis.testWorstCaseCount ??= undefined; -globalThis.testWorstCaseCountMap ??= new Map(); -globalThis.dumpJSONResults ??= false; -globalThis.testList ??= undefined; -globalThis.startDelay ??= undefined; -globalThis.shouldReport ??= false; -globalThis.prefetchResources ??= true; -globalThis.details ??= false; - -function getIntParam(urlParams, key) { - const rawValue = urlParams.get(key); - const value = parseInt(rawValue); - if (value <= 0) - throw new Error(`Expected positive value for ${key}, but got ${rawValue}`); - return value; -} - -function getBoolParam(urlParams, key) { - const rawValue = urlParams.get(key).toLowerCase() - return !(rawValue === "false" || rawValue === "0") - } - -function getTestListParam(urlParams, key) { - if (globalThis.testList?.length) - throw new Error(`Overriding previous testList=${globalThis.testList.join()} with ${key} url-parameter.`); - return urlParams.getAll(key); -} - -if (typeof(URLSearchParams) !== "undefined") { - const urlParameters = new URLSearchParams(window.location.search); - if (urlParameters.has("report")) - globalThis.shouldReport = urlParameters.get("report").toLowerCase() == "true"; - if (urlParameters.has("startDelay")) - globalThis.startDelay = getIntParam(urlParameters, "startDelay"); - if (globalThis.shouldReport && !globalThis.startDelay) - globalThis.startDelay = 4000; - if (urlParameters.has("tag")) - globalThis.testList = getTestListParam(urlParameters, "tag"); - if (urlParameters.has("test")) - globalThis.testList = getTestListParam(urlParameters, "test"); - if (urlParameters.has("iterationCount")) - globalThis.testIterationCount = getIntParam(urlParameters, "iterationCount"); - if (urlParameters.has("worstCaseCount")) - globalThis.testWorstCaseCount = getIntParam(urlParameters, "worstCaseCount"); - if (urlParameters.has("prefetchResources")) - globalThis.prefetchResources = getBoolParam(urlParameters, "prefetchResources"); - if (urlParameters.has("details")) - globalThis.details = getBoolParam(urlParameters, "details"); -} - -if (!globalThis.prefetchResources) -||||||| 724cf7c -globalThis.performance ??= Date; -globalThis.RAMification ??= false; -globalThis.testIterationCount ??= undefined; -globalThis.testIterationCountMap ??= new Map(); -globalThis.testWorstCaseCount ??= undefined; -globalThis.testWorstCaseCountMap ??= new Map(); -globalThis.dumpJSONResults ??= false; -globalThis.testList ??= undefined; -globalThis.startDelay ??= undefined; -globalThis.shouldReport ??= false; -globalThis.prefetchResources ??= true; - -function getIntParam(urlParams, key) { - const rawValue = urlParams.get(key); - const value = parseInt(rawValue); - if (value <= 0) - throw new Error(`Expected positive value for ${key}, but got ${rawValue}`); - return value; -} - -function getBoolParam(urlParams, key) { - const rawValue = urlParams.get(key).toLowerCase() - return !(rawValue === "false" || rawValue === "0") - } - -function getTestListParam(urlParams, key) { - if (globalThis.testList?.length) - throw new Error(`Overriding previous testList=${globalThis.testList.join()} with ${key} url-parameter.`); - return urlParams.getAll(key); -} - -if (typeof(URLSearchParams) !== "undefined") { - const urlParameters = new URLSearchParams(window.location.search); - if (urlParameters.has("report")) - globalThis.shouldReport = urlParameters.get("report").toLowerCase() == "true"; - if (urlParameters.has("startDelay")) - globalThis.startDelay = getIntParam(urlParameters, "startDelay"); - if (globalThis.shouldReport && !globalThis.startDelay) - globalThis.startDelay = 4000; - if (urlParameters.has("tag")) - globalThis.testList = getTestListParam(urlParameters, "tag"); - if (urlParameters.has("test")) - globalThis.testList = getTestListParam(urlParameters, "test"); - if (urlParameters.has("iterationCount")) - globalThis.testIterationCount = getIntParam(urlParameters, "iterationCount"); - if (urlParameters.has("worstCaseCount")) - globalThis.testWorstCaseCount = getIntParam(urlParameters, "worstCaseCount"); - if (urlParameters.has("prefetchResources")) - globalThis.prefetchResources = getBoolParam(urlParameters, "prefetchResources"); -} - -if (!globalThis.prefetchResources) -======= if (!JetStreamParams.prefetchResources) ->>>>>>> main console.warn("Disabling resource prefetching!"); // Used for the promise representing the current benchmark run. @@ -395,7 +284,7 @@ class Driver { prepareBrowserUI() { let text = ""; for (const benchmark of this.benchmarks) - text += benchmark.prepareBrowserUI(); + text += benchmark.renderHTML(); const timestamp = performance.now(); document.getElementById('jetstreams').style.backgroundImage = `url('jetstreams.svg?${timestamp}')`; @@ -851,7 +740,7 @@ class Benchmark { return code; } - prepareBrowserUI() { + renderHTML() { const description = Object.keys(this.subScores()); description.push("Score"); @@ -1120,12 +1009,12 @@ class Benchmark { updateUIBeforeRun() { if (!JetStreamParams.dumpJSONResults) - this.updateUIBeforeRunInShell(); + this.updateConsoleBeforeRun(); if (isInBrowser) this.updateUIBeforeRunInBrowser(); } - updateUIBeforeRunInShell() { + updateConsoleBeforeRun() { console.log(`Running ${this.name}:`); } @@ -1225,23 +1114,23 @@ class GroupedBenchmark extends Benchmark { benchmark.prefetchResourcesForShell(); } - prepareBrowserUI() { - let text = super.prepareBrowserUI(); - if (globalThis.details) { + renderHTML() { + let text = super.renderHTML(); + if (JetStreamParams.groupDetails) { for (const benchmark of this.benchmarks) - text += benchmark.prepareBrowserUI(); + text += benchmark.renderHTML(); } return text; } - updateUIBeforeRunInShell() { - if (!globalThis.details) - super.updateUIBeforeRunInShell(); + updateConsoleBeforeRun() { + if (!JetStreamParams.groupDetails) + super.updateConsoleBeforeRun(); } updateConsoleAfterRun(scoreEntries) { - if (globalThis.details) - super.updateUIBeforeRunInShell(); + if (JetStreamParams.groupDetails) + super.updateConsoleBeforeRun(); super.updateConsoleAfterRun(scoreEntries); } @@ -1261,10 +1150,10 @@ class GroupedBenchmark extends Benchmark { try { this._state = BenchmarkState.RUNNING; for (benchmark of this.benchmarks) { - if (globalThis.details) + if (JetStreamParams.groupDetails) benchmark.updateUIBeforeRun(); await benchmark.run(); - if (globalThis.details) + if (JetStreamParams.groupDetails) benchmark.updateUIAfterRun(); } } catch (e) { diff --git a/cli.js b/cli.js index 7c868db..a24d2b3 100644 --- a/cli.js +++ b/cli.js @@ -52,6 +52,10 @@ const CLI_PARAMS = { help: "Do not prefetch resources. Will add network overhead to measurements!", param: "prefetchResources", }, + "group-details": { + help: "Display detailed group items", + param: "groupDetails", + }, test: { help: "Run a specific test or comma-separated list of tests.", param: "test", @@ -106,39 +110,6 @@ function parseCliFlag(argument) { cliParams.set(CLI_PARAMS[flagName].param, value); } -<<<<<<< HEAD -if ("--iteration-count" in cliFlags) - globalThis.testIterationCount = getIntFlag(cliFlags, "--iteration-count"); -if ("--worst-case-count" in cliFlags) - globalThis.testWorstCaseCount = getIntFlag(cliFlags, "--worst-case-count"); -if ("--dump-json-results" in cliFlags) - globalThis.dumpJSONResults = true; -if (typeof runMode !== "undefined" && runMode == "RAMification") - globalThis.RAMification = true; -if ("--ramification" in cliFlags) - globalThis.RAMification = true; -if ("--no-prefetch" in cliFlags) - globalThis.prefetchResources = false; -if ("--group-details" in cliFlags) - globalThis.details = true; -if (cliArgs.length) - globalThis.testList = cliArgs; -||||||| 724cf7c -if ("--iteration-count" in cliFlags) - globalThis.testIterationCount = getIntFlag(cliFlags, "--iteration-count"); -if ("--worst-case-count" in cliFlags) - globalThis.testWorstCaseCount = getIntFlag(cliFlags, "--worst-case-count"); -if ("--dump-json-results" in cliFlags) - globalThis.dumpJSONResults = true; -if (typeof runMode !== "undefined" && runMode == "RAMification") - globalThis.RAMification = true; -if ("--ramification" in cliFlags) - globalThis.RAMification = true; -if ("--no-prefetch" in cliFlags) - globalThis.prefetchResources = false; -if (cliArgs.length) - globalThis.testList = cliArgs; -======= if (cliArgs.length) { let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : [] @@ -149,8 +120,9 @@ if (cliArgs.length) { if (cliParams.size) globalThis.JetStreamParamsSource = cliParams; +console.log(Array.from(cliParams.entries())) + load("./params.js"); ->>>>>>> main async function runJetStream() { diff --git a/params.js b/params.js index 37c22a6..3cbf3c9 100644 --- a/params.js +++ b/params.js @@ -38,6 +38,9 @@ class Params { testWorstCaseCount = undefined; prefetchResources = true; + // Display group details. + groupDetails = false + RAMification = false; dumpJSONResults = false; testIterationCountMap = new Map(); @@ -60,11 +63,12 @@ class Params { this.prefetchResources = this._parseBooleanParam(sourceParams, "prefetchResources"); this.RAMification = this._parseBooleanParam(sourceParams, "RAMification"); this.dumpJSONResults = this._parseBooleanParam(sourceParams, "dumpJSONResults"); + this.groupDetails = this._parseBooleanParam(sourceParams, "groupDetails"); this.customPreIterationCode = this._parseStringParam(sourceParams, "customPreIterationCode"); this.customPostIterationCode = this._parseStringParam(sourceParams, "customPostIterationCode"); - this.startDelay = this._parseIntParam(sourceParams, "startDelay", 0); + this.startDelay = this._parseIntParam(sourceParams, "startDelay", 0); if (this.shouldReport && !this.startDelay) this.startDelay = 4000; From f5e0819107a08e4885d1a1b1a9f41b8ab5974840 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 1 Oct 2025 21:24:04 +0200 Subject: [PATCH 7/7] remove debug code --- cli.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/cli.js b/cli.js index a24d2b3..c91a513 100644 --- a/cli.js +++ b/cli.js @@ -120,8 +120,6 @@ if (cliArgs.length) { if (cliParams.size) globalThis.JetStreamParamsSource = cliParams; -console.log(Array.from(cliParams.entries())) - load("./params.js");