From ebd16e044162346d33aca48a92f5c50fad783489 Mon Sep 17 00:00:00 2001 From: gobwas Date: Mon, 22 Feb 2016 22:25:10 +0300 Subject: [PATCH] ttt --- glob_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/glob_test.go b/glob_test.go index ce55202..766b233 100644 --- a/glob_test.go +++ b/glob_test.go @@ -183,6 +183,15 @@ func BenchmarkAllGlobMismatch(b *testing.B) { _ = m.Match(fixture_all_mismatch) } } +func BenchmarkAllGlobMatchParallel(b *testing.B) { + m, _ := Compile(pattern_all) + + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _ = m.Match(fixture_all_match) + } + }) +} func BenchmarkAllRegexpMismatch(b *testing.B) { m := regexp.MustCompile(regexp_all) f := []byte(fixture_all_mismatch)