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

Function BenchmarkJasonSmall

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

370// Verifies: STK-REQ-007
371// MCDC STK-REQ-007: N/A
372func BenchmarkJasonSmall(b *testing.B) {
373 for i := 0; i < b.N; i++ {
374 json, _ := jason.NewObjectFromBytes(smallFixture)
375
376 json.GetString("uuid")
377 json.GetFloat64("tz")
378 json.GetString("ua")
379 json.GetFloat64("st")
380
381 nothing()
382 }
383}
384
385/*
386 github.com/mreiferson/go-ujson

Callers

nothing calls this directly

Calls 1

nothingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…