MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / newBitmap

Function newBitmap

bitmap/main_test.go:310–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308const N int = 1000000
309
310func newBitmap() *roaring64.Bitmap {
311 bm := roaring64.New()
312
313 max := int64(N) * 1000
314 for i := 0; i < N; i++ {
315 bm.Add(uint64(rand.Int63n(max)))
316 }
317 return bm
318}
319
320func newList() []uint64 {
321 var l []uint64

Callers 10

BenchmarkCardinalityFunction · 0.85
BenchmarkToArrayFunction · 0.85
BenchmarkFromArrayFunction · 0.85
BenchmarkMarshalFunction · 0.85
BenchmarkUnmarshalFunction · 0.85
BenchmarkCloneFunction · 0.85
TestCloneFunction · 0.85
BenchmarkCopyOnWriteFunction · 0.85
BenchmarkAndFunction · 0.85
BenchmarkOrFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected