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

Function BenchmarkGoSimplejsonSmall

benchmark/benchmark_small_payload_test.go:312–323  ·  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 reqproof:proptest:skip performance benchm

(b *testing.B)

Source from the content-addressed store, hash-verified

310// MCDC STK-REQ-007: N/A
311// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
312func BenchmarkGoSimplejsonSmall(b *testing.B) {
313 for i := 0; i < b.N; i++ {
314 json, _ := simplejson.NewJson(smallFixture)
315
316 json.Get("uuid").String()
317 json.Get("tz").Float64()
318 json.Get("ua").String()
319 json.Get("st").Float64()
320
321 nothing()
322 }
323}
324
325// Verifies: STK-REQ-001
326// 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