From 0bb771c458c97439ea1cee2d2107cd2a093752fc Mon Sep 17 00:00:00 2001 From: Yusuke Suzuki Date: Tue, 12 Aug 2025 21:49:03 -0700 Subject: [PATCH] Add --dump-test-list option This offers an easy way to dump list of tests scheduled for this command invocation. Like, $ VM cli.js -- --dump-list-tests Then it dumps list of tests it will execute. --- JetStreamDriver.js | 7 +++++++ cli.js | 3 +++ 2 files changed, 10 insertions(+) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index d1ef7964..7326557a 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -526,6 +526,13 @@ class Driver { } } + dumpTestList() + { + for (const benchmark of this.benchmarks) { + console.log(benchmark.name); + } + } + async reportScoreToRunBenchmarkRunner() { if (!isInBrowser) diff --git a/cli.js b/cli.js index b670d21e..5429ccd8 100644 --- a/cli.js +++ b/cli.js @@ -83,6 +83,7 @@ if ("--help" in cliFlags) { console.log(" --iteration-count: Set the default iteration count."); console.log(" --worst-case-count: Set the default worst-case count"); console.log(" --dump-json-results: Print summary json to the console."); + console.log(" --dump-test-list: Print test list instead of running."); console.log(" --ramification: Enable ramification support. See RAMification.py for more details."); console.log(" --no-prefetch: Do not prefetch resources. Will add network overhead to measurements!"); console.log(""); @@ -97,6 +98,8 @@ if ("--help" in cliFlags) { const benchmarkNames = BENCHMARKS.map(b => b.name).sort(); for (const benchmark of benchmarkNames) console.log(" ", benchmark); +} else if ("--dump-test-list" in cliFlags) { + JetStream.dumpTestList(); } else { runJetStream(); }