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

Function BenchmarkWriteDenseTo

roaring_test.go:3722–3734  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

3720}
3721
3722func BenchmarkWriteDenseTo(b *testing.B) {
3723 testDense(func(name string, rb *Bitmap) {
3724 b.Run(name, func(b *testing.B) {
3725 dense := make([]uint64, rb.DenseSize())
3726 b.ReportAllocs()
3727 b.SetBytes(int64(len(dense) * 8))
3728 b.ResetTimer()
3729 for i := 0; i < b.N; i++ {
3730 rb.WriteDenseTo(dense)
3731 }
3732 })
3733 })
3734}
3735
3736func BenchmarkEvenIntervalArrayUnions(b *testing.B) {
3737 inputBitmaps := make([]*Bitmap, 40)

Callers

nothing calls this directly

Calls 3

testDenseFunction · 0.85
DenseSizeMethod · 0.80
WriteDenseToMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…