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

Function BenchmarkDeleteSmall

benchmark/benchmark_delete_test.go:12–19  ·  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

10// MCDC STK-REQ-005: N/A
11// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
12func BenchmarkDeleteSmall(b *testing.B) {
13 b.ReportAllocs()
14 b.ResetTimer()
15 for i := 0; i < b.N; i++ {
16 data1 := []byte(`{ "instanceId": 1, "ip": "10.10.10.10", "services": [ { "id": 1, "name": "srv1" } ] }`)
17 _ = jsonparser.Delete(data1, "services")
18 }
19}
20
21// Verifies: STK-REQ-005
22// MCDC STK-REQ-005: N/A

Callers

nothing calls this directly

Calls 1

DeleteFunction · 0.92

Tested by

no test coverage detected