ref: 12876ec991982de27773d127e2030b1eeb2826b2
parent: d08e4c87a72f57a836722700900690857a4225cb
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Jan 27 17:28:05 EST 2016
Fix hugo benchmark Appending to the site 13 times doesn't sound realistic.
--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -53,6 +53,7 @@
return err
}
for i := 0; i < benchmarkTimes; i++ {
+ mainSite = nil
_ = buildSite()
}
pprof.WriteHeapProfile(f)
@@ -71,6 +72,7 @@
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
for i := 0; i < benchmarkTimes; i++ {
+ mainSite = nil
_ = buildSite()
}
}