test parallel

This commit is contained in:
gobwas 2016-02-22 22:17:25 +03:00
parent de3f4464d6
commit eb46c5146c
1 changed files with 5 additions and 4 deletions

View File

@ -75,8 +75,9 @@ func BenchmarkMatchBTree(b *testing.B) {
bt := NewBTree(v, l, r)
b.SetParallelism(1)
for i := 0; i < b.N; i++ {
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
bt.Match(fixture)
}
})
}