hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 01e54609e78479aa793c64bc32feb66a3dacfade
parent 5800a20a258378440e203a6c4a4343f5077755df
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat,  7 Oct 2017 20:41:25 +0200

metrics: Reset benchmark timer

Diffstat:
Mmetrics/metrics_test.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go
@@ -44,6 +44,7 @@ func BenchmarkHowSimilar(b *testing.B) {
 	s1 := "Hugo is cool and " + strings.Repeat("fun ", 10) + "!"
 	s2 := "Hugo is cool and " + strings.Repeat("cool ", 10) + "!"
 
+	b.ResetTimer()
 	for i := 0; i < b.N; i++ {
 		howSimilar(s1, s2)
 	}