From 01e54609e78479aa793c64bc32feb66a3dacfade Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 7 Oct 2017 20:41:25 +0200 Subject: [PATCH] metrics: Reset benchmark timer --- metrics/metrics_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index 5a5553ec..70baa0a6 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) } -- 2.30.2