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(); }