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

Function BenchmarkList

bitmap/main_test.go:16–23  ·  view source on GitHub ↗

Each add is 24ns.

(b *testing.B)

Source from the content-addressed store, hash-verified

14
15// Each add is 24ns.
16func BenchmarkList(b *testing.B) {
17 var l []uint64
18 max := int64(b.N) * 1000
19 for i := 0; i < b.N; i++ {
20 l = append(l, uint64(rand.Int63n(max)))
21 }
22 b.Logf("Size with N %d: %d\n", b.N, len(l)*8)
23}
24
25// Each add is 600ns.
26func BenchmarkRoaring(b *testing.B) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected