Skip to content

Commit 28c34fd

Browse files
committed
add GroupedBenchmarks comment
1 parent 9ee0289 commit 28c34fd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

JetStreamDriver.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,8 +919,12 @@ class Benchmark {
919919
throw new Error(`Cannot run Benchmark ${this.name} twice`);
920920
this._state = BenchmarkState.PREPARE;
921921

922-
if (JetStreamParams.forceGC)
922+
if (JetStreamParams.forceGC) {
923+
// This will trigger for individual benchmarks in
924+
// GroupedBenchmarks since they delegate .run() to their inner
925+
// benchmarks.
923926
globalThis?.gc();
927+
}
924928

925929
const scripts = isInBrowser ? new BrowserScripts(this.preloads) : new ShellScripts(this.preloads);
926930

0 commit comments

Comments
 (0)