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

Function oneKeyList

cachebench/cache_bench_test.go:84–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func oneKeyList() [][]byte {
85 v := rand.Int() % (workloadSize / 3)
86 s := []byte(strconv.Itoa(v))
87
88 keys := make([][]byte, workloadSize)
89 for i := 0; i < workloadSize; i++ {
90 keys[i] = s
91 }
92
93 return keys
94}
95
96//========================================================================
97// BigCache

Callers 1

BenchmarkCachesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected