diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-10-07 20:41:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-10-07 20:41:25 +0200 |
commit | 01e54609e78479aa793c64bc32feb66a3dacfade (patch) | |
tree | 965e11ccbab1b78bd41f7a734e62ee3da4e3f569 /metrics | |
parent | 5800a20a258378440e203a6c4a4343f5077755df (diff) | |
download | hugo-01e54609e78479aa793c64bc32feb66a3dacfade.tar.gz hugo-01e54609e78479aa793c64bc32feb66a3dacfade.zip |
metrics: Reset benchmark timer
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/metrics_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index 5a5553ecd..70baa0a61 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) } |