MCPcopy
hub / github.com/RoaringBitmap/roaring / BenchmarkRepeatedGrowthArrayUnion

Function BenchmarkRepeatedGrowthArrayUnion

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

Source from the content-addressed store, hash-verified

3789}
3790
3791func BenchmarkRepeatedGrowthArrayUnion(b *testing.B) {
3792 b.ReportAllocs()
3793 for i := 0; i < b.N; i++ {
3794 sink := NewBitmap()
3795 source := NewBitmap()
3796 for i := 0; i < 2048; i++ {
3797 source.Add(uint32(2 * i))
3798 sink.Or(source)
3799 }
3800 }
3801}
3802
3803func BenchmarkRepeatedSelfArrayUnion(b *testing.B) {
3804 bitmap := NewBitmap()

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
OrMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…