MCPcopy Index your code
hub / github.com/buger/jsonparser / BenchmarkSetLarge

Function BenchmarkSetLarge

benchmark/benchmark_set_test.go:11–22  ·  view source on GitHub ↗

Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

9// Verifies: STK-REQ-005
10// MCDC STK-REQ-005: N/A
11func BenchmarkSetLarge(b *testing.B) {
12 b.ReportAllocs()
13
14 keyPath := make([]string, 20000)
15 for i := range keyPath {
16 keyPath[i] = "keyPath" + strconv.Itoa(i)
17 }
18 b.ResetTimer()
19 for i := 0; i < b.N; i++ {
20 _, _ = jsonparser.Set(largeFixture, largeFixture, keyPath...)
21 }
22}

Callers

nothing calls this directly

Calls 1

SetFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…