add benchmark

This commit is contained in:
Richard Artoul 2018-11-29 21:00:35 -05:00
parent 42e756b316
commit c412bc595d

View file

@ -3275,6 +3275,13 @@ func BenchmarkUnionBitmapBitmapInPlace(b *testing.B) {
}
}
func BenchmarkBitmapRepair(b *testing.B) {
b1 := newTestBitmapContainer()
for n := 0; n < b.N; n++ {
b1.bitmapRepair()
}
}
func newTestBitmapContainer() *Container {
var (
buf = make([]uint64, bitmapN)