hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 84805a68caca2f21a7a32f54ac4c1f6e0ada98ac
parent a2d81ce983d45b5742c93bd472503c88286f099a
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue,  5 Dec 2017 16:17:11 +0100

Use StopTimer in site benchmarks

Diffstat:
Mhugolib/site_benchmark_test.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hugolib/site_benchmark_test.go b/hugolib/site_benchmark_test.go
@@ -133,8 +133,9 @@ func BenchmarkSiteBuilding(b *testing.B) {
 
 func doBenchMarkSiteBuilding(conf siteBuildingBenchmarkConfig, b *testing.B) {
 	b.Run(conf.String(), func(b *testing.B) {
+		b.StopTimer()
 		sites := createHugoBenchmarkSites(b, b.N, conf)
-		b.ResetTimer()
+		b.StartTimer()
 		for i := 0; i < b.N; i++ {
 			h := sites[0]