Commit 447764e6 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Stop spamming stderr for benchmark.

parent 1b338d3e
......@@ -61,7 +61,6 @@ func BulkStat(parallelism int, files []string) float64 {
}()
}
allStart := time.Now()
for _, v := range files {
todo <- v
}
......@@ -72,12 +71,8 @@ func BulkStat(parallelism int, files []string) float64 {
total += float64(<-dts) / float64(time.Millisecond)
}
allDt := time.Now().Sub(allStart)
avg := total / float64(len(files))
fmt.Printf("Elapsed: %f sec. Average stat %f ms\n",
allDt.Seconds(), avg)
return avg
}
......
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