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

Function BenchmarkJsonParserDelSmall

benchmark/benchmark_small_payload_test.go:206–218  ·  view source on GitHub ↗

Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A Verifies: STK-REQ-007 MCDC STK-REQ-007: N/A

(b *testing.B)

Source from the content-addressed store, hash-verified

204// Verifies: STK-REQ-007
205// MCDC STK-REQ-007: N/A
206func BenchmarkJsonParserDelSmall(b *testing.B) {
207 fixture := make([]byte, 0, len(smallFixture))
208 b.ResetTimer()
209 for i := 0; i < b.N; i++ {
210 fixture = append(fixture[:0], smallFixture...)
211 fixture = jsonparser.Delete(fixture, "uuid")
212 fixture = jsonparser.Delete(fixture, "tz")
213 fixture = jsonparser.Delete(fixture, "ua")
214 fixture = jsonparser.Delete(fixture, "stt")
215
216 nothing()
217 }
218}
219
220/*
221 encoding/json

Callers

nothing calls this directly

Calls 2

DeleteFunction · 0.92
nothingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…