Skip to content

Instantly share code, notes, and snippets.

$ go test -bench=. regcmp_test.go
testing: warning: no tests to run
BenchmarkNegativeMatchBool-8 10000000 118 ns/op
BenchmarkNegativeMatchString-8 10000000 128 ns/op
BenchmarkPositiveMatchBool-8 1000000 2494 ns/op
BenchmarkPositiveMatchString-8 500000 2878 ns/op
PASS
ok command-line-arguments 6.718s