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

Function BenchmarkFastJsonNode2Chilren

query/outputnode_test.go:207–213  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

205}
206
207func BenchmarkFastJsonNode2Chilren(b *testing.B) {
208 for i := 0; i < b.N; i++ {
209 enc := newEncoder()
210 root := enc.newNode(enc.idForAttr(testAttr))
211 buildTestTree(b, enc, 1, 20, root)
212 }
213}
214
215func TestChildrenOrder(t *testing.T) {
216 enc := newEncoder()

Callers

nothing calls this directly

Calls 4

newEncoderFunction · 0.85
buildTestTreeFunction · 0.85
newNodeMethod · 0.80
idForAttrMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…