Commit 5898fa05 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Run GC before starting one benchmark run, to decrease variability.

parent 41b6f3ed
......@@ -182,6 +182,7 @@ func BenchmarkGoFuseThreadedStat(b *testing.B) {
}
func TestingBOnePass(b *testing.B, threads int, sleepTime time.Duration, files []string) (results []float64) {
runtime.GC()
runs := b.N + 1
for j := 0; j < runs; j++ {
if j > 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment