mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
add benchmark
This commit is contained in:
parent
42e756b316
commit
c412bc595d
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue