We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee0289 commit 28c34fdCopy full SHA for 28c34fd
1 file changed
JetStreamDriver.js
@@ -919,8 +919,12 @@ class Benchmark {
919
throw new Error(`Cannot run Benchmark ${this.name} twice`);
920
this._state = BenchmarkState.PREPARE;
921
922
- if (JetStreamParams.forceGC)
+ if (JetStreamParams.forceGC) {
923
+ // This will trigger for individual benchmarks in
924
+ // GroupedBenchmarks since they delegate .run() to their inner
925
+ // benchmarks.
926
globalThis?.gc();
927
+ }
928
929
const scripts = isInBrowser ? new BrowserScripts(this.preloads) : new ShellScripts(this.preloads);
930
0 commit comments