summaryrefslogtreecommitdiff
path: root/perf_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'perf_test.go')
-rw-r--r--perf_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/perf_test.go b/perf_test.go
index d6a0092..7a2911e 100644
--- a/perf_test.go
+++ b/perf_test.go
@@ -5,6 +5,7 @@ import "testing"
func BenchmarkAny(b *testing.B) {
p := Any("hello", "goodbye", "help")
+ b.ResetTimer()
for i := 0; i < b.N; i++ {
_, _ = Run(p, "hello")
_, _ = Run(p, "hello world")