File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,7 @@ func main() {
226
226
totalTime := time .Since (startTime )
227
227
228
228
var memStats runtime.MemStats
229
+ // GC must be called twice to allow things to settle.
229
230
runtime .GC ()
230
231
runtime .GC ()
231
232
runtime .ReadMemStats (& memStats )
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ func BenchmarkBind(b *testing.B) {
29
29
30
30
compilerOptions := & core.CompilerOptions {Target : core .ScriptTargetESNext , ModuleKind : core .ModuleKindNodeNext }
31
31
32
- // The above parses do a lot of work; ensure GC is settled before we start collecting pefrormance data.
32
+ // The above parses do a lot of work; ensure GC is finished before we start collecting pefrormance data.
33
+ // GC must be called twice to allow things to settle.
33
34
runtime .GC ()
34
35
runtime .GC ()
35
36
You can’t perform that action at this time.
0 commit comments