summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go
index 5a5553ecd..70baa0a61 100644
--- 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)
}