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

Function BenchmarkJsonParserSetSmall

benchmark/benchmark_small_payload_test.go:191–200  ·  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 reqproof:proptest:skip performance benchmark; measures wall-clock time and alloc

(b *testing.B)

Source from the content-addressed store, hash-verified

189// MCDC STK-REQ-007: N/A
190// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
191func BenchmarkJsonParserSetSmall(b *testing.B) {
192 for i := 0; i < b.N; i++ {
193 jsonparser.Set(smallFixture, []byte(`"c90927dd-1588-4fe7-a14f-8a8950cfcbd8"`), "uuid")
194 jsonparser.Set(smallFixture, []byte("-3"), "tz")
195 jsonparser.Set(smallFixture, []byte(`"server_agent"`), "ua")
196 jsonparser.Set(smallFixture, []byte("3"), "st")
197
198 nothing()
199 }
200}
201
202// Verifies: STK-REQ-001
203// 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