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

Function BenchmarkJsonParserSmall

benchmark/benchmark_small_payload_test.go:44–53  ·  view source on GitHub ↗

* github.com/buger/jsonparser */ 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

(b *testing.B)

Source from the content-addressed store, hash-verified

42// MCDC STK-REQ-007: N/A
43// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
44func BenchmarkJsonParserSmall(b *testing.B) {
45 for i := 0; i < b.N; i++ {
46 jsonparser.Get(smallFixture, "uuid")
47 jsonparser.GetInt(smallFixture, "tz")
48 jsonparser.Get(smallFixture, "ua")
49 jsonparser.GetInt(smallFixture, "st")
50
51 nothing()
52 }
53}
54
55// Verifies: STK-REQ-001
56// MCDC STK-REQ-001: N/A

Callers

nothing calls this directly

Calls 3

GetFunction · 0.92
GetIntFunction · 0.92
nothingFunction · 0.85

Tested by

no test coverage detected