From 0dc37ae5bc10cc0669f88ab9febbc039a28f23d1 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Sun, 13 Aug 2017 16:56:12 +1000 Subject: Remove a few allocs from Run --- perf_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'perf_test.go') 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") -- cgit v1.2.3