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

Function BenchmarkJsonParserSetSmall

benchmark/benchmark_small_payload_test.go:185–194  ·  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

183// Verifies: STK-REQ-007
184// MCDC STK-REQ-007: N/A
185func BenchmarkJsonParserSetSmall(b *testing.B) {
186 for i := 0; i < b.N; i++ {
187 jsonparser.Set(smallFixture, []byte(`"c90927dd-1588-4fe7-a14f-8a8950cfcbd8"`), "uuid")
188 jsonparser.Set(smallFixture, []byte("-3"), "tz")
189 jsonparser.Set(smallFixture, []byte(`"server_agent"`), "ua")
190 jsonparser.Set(smallFixture, []byte("3"), "st")
191
192 nothing()
193 }
194}
195
196// Verifies: STK-REQ-001
197// MCDC STK-REQ-001: N/A

Callers

nothing calls this directly

Calls 2

SetFunction · 0.92
nothingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…