Permalink
Browse files

Use StopTimer in site benchmarks

  • Loading branch information...
bep committed Dec 5, 2017
1 parent a2d81ce commit 84805a68caca2f21a7a32f54ac4c1f6e0ada98ac
Showing with 2 additions and 1 deletion.
  1. +2 −1 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]

0 comments on commit 84805a6

Please sign in to comment.