From 84805a68caca2f21a7a32f54ac4c1f6e0ada98ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 5 Dec 2017 16:17:11 +0100 Subject: [PATCH] Use StopTimer in site benchmarks --- hugolib/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 index d7f30036..30720e7e 100644 --- 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] -- 2.30.2