16 lines
270 B
Go
16 lines
270 B
Go
package goparsify
|
|
|
|
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")
|
|
_, _ = Run(p, "good boy")
|
|
_, _ = Run(p, "help me")
|
|
}
|
|
}
|