Permalink
Browse files

metrics: Reset benchmark timer

  • Loading branch information...
bep committed Oct 7, 2017
1 parent 5800a20 commit 01e54609e78479aa793c64bc32feb66a3dacfade
Showing with 1 addition and 0 deletions.
  1. +1 −0 metrics/metrics_test.go
View
@@ -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)
}

0 comments on commit 01e5460

Please sign in to comment.