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

Function BenchmarkToArray

bitmap/main_test.go:49–56  ·  view source on GitHub ↗

This is taking 7ms for 1M entries.

(b *testing.B)

Source from the content-addressed store, hash-verified

47
48// This is taking 7ms for 1M entries.
49func BenchmarkToArray(b *testing.B) {
50 bm := newBitmap()
51 b.ResetTimer()
52
53 for i := 0; i < b.N; i++ {
54 _ = bm.ToArray()
55 }
56}
57
58// This is taking 22ms for 1M entries.
59func BenchmarkFromArray(b *testing.B) {

Callers

nothing calls this directly

Calls 1

newBitmapFunction · 0.85

Tested by

no test coverage detected