mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
metrics: Reset benchmark timer
This commit is contained in:
parent
5800a20a25
commit
01e54609e7
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue