mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
metrics: Reset benchmark timer
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user