metrics: Reset benchmark timer

This commit is contained in:
Bjørn Erik Pedersen 2017-10-07 20:41:25 +02:00
parent 5800a20a25
commit 01e54609e7
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View File

@ -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)
}