MCPcopy
hub / github.com/buger/jsonparser / BenchmarkDeleteSmall

Function BenchmarkDeleteSmall

benchmark/benchmark_delete_test.go:11–18  ·  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 BenchmarkDeleteSmall(b *testing.B) {
12 b.ReportAllocs()
13 b.ResetTimer()
14 for i := 0; i < b.N; i++ {
15 data1 := []byte(`{ "instanceId": 1, "ip": "10.10.10.10", "services": [ { "id": 1, "name": "srv1" } ] }`)
16 _ = jsonparser.Delete(data1, "services")
17 }
18}
19
20// Verifies: STK-REQ-005
21// MCDC STK-REQ-005: N/A

Callers

nothing calls this directly

Calls 1

DeleteFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…