MCPcopy Create free account
hub / github.com/buger/jsonparser / BenchmarkDeleteNested

Function BenchmarkDeleteNested

benchmark/benchmark_delete_test.go:24–31  ·  view source on GitHub ↗

Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference

(b *testing.B)

Source from the content-addressed store, hash-verified

22// MCDC STK-REQ-005: N/A
23// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
24func BenchmarkDeleteNested(b *testing.B) {
25 b.ReportAllocs()
26 b.ResetTimer()
27 for i := 0; i < b.N; i++ {
28 data1 := []byte(`{ "instanceId": 1, "ip": "10.10.10.10", "services": [ { "id": 1, "name": "srv1" } ] }`)
29 _ = jsonparser.Delete(data1, "services", "id")
30 }
31}
32
33// Verifies: STK-REQ-005
34// MCDC STK-REQ-005: N/A

Callers

nothing calls this directly

Calls 1

DeleteFunction · 0.92

Tested by

no test coverage detected