(b *testing.B)
| 153 | } |
| 154 | |
| 155 | func BenchmarkRealDataNextMany(b *testing.B) { |
| 156 | benchmarkRealDataAggregate(b, func(bitmaps []*Bitmap) uint64 { |
| 157 | tot := uint64(0) |
| 158 | buf := make([]uint32, 4096) |
| 159 | for _, b := range bitmaps { |
| 160 | it := b.ManyIterator() |
| 161 | for n := it.NextMany(buf); n != 0; n = it.NextMany(buf) { |
| 162 | for _, v := range buf[:n] { |
| 163 | tot += uint64(v) |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | return tot |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | func BenchmarkRealDataParOr(b *testing.B) { |
| 172 | benchmarkRealDataAggregate(b, func(bitmaps []*Bitmap) uint64 { |
nothing calls this directly
no test coverage detected
searching dependent graphs…