MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / BenchmarkRealDataNext

Function BenchmarkRealDataNext

real_data_benchmark_test.go:142–153  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

140}
141
142func BenchmarkRealDataNext(b *testing.B) {
143 benchmarkRealDataAggregate(b, func(bitmaps []*Bitmap) uint64 {
144 tot := uint64(0)
145 for _, b := range bitmaps {
146 it := b.Iterator()
147 for it.HasNext() {
148 tot += uint64(it.Next())
149 }
150 }
151 return tot
152 })
153}
154
155func BenchmarkRealDataNextMany(b *testing.B) {
156 benchmarkRealDataAggregate(b, func(bitmaps []*Bitmap) uint64 {

Callers

nothing calls this directly

Calls 4

HasNextMethod · 0.65
NextMethod · 0.65
IteratorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…