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

Function BenchmarkGoSimplejsonSmall

benchmark/benchmark_small_payload_test.go:301–312  ·  view source on GitHub ↗

* github.com/bitly/go-simplejson */ 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

299// Verifies: STK-REQ-007
300// MCDC STK-REQ-007: N/A
301func BenchmarkGoSimplejsonSmall(b *testing.B) {
302 for i := 0; i < b.N; i++ {
303 json, _ := simplejson.NewJson(smallFixture)
304
305 json.Get("uuid").String()
306 json.Get("tz").Float64()
307 json.Get("ua").String()
308 json.Get("st").Float64()
309
310 nothing()
311 }
312}
313
314// Verifies: STK-REQ-001
315// MCDC STK-REQ-001: N/A

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…