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

Function BenchmarkJsonParserSmall

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

(b *testing.B)

Source from the content-addressed store, hash-verified

40// Verifies: STK-REQ-007
41// MCDC STK-REQ-007: N/A
42func BenchmarkJsonParserSmall(b *testing.B) {
43 for i := 0; i < b.N; i++ {
44 jsonparser.Get(smallFixture, "uuid")
45 jsonparser.GetInt(smallFixture, "tz")
46 jsonparser.Get(smallFixture, "ua")
47 jsonparser.GetInt(smallFixture, "st")
48
49 nothing()
50 }
51}
52
53// Verifies: STK-REQ-001
54// 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…