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

Function BenchmarkGabsMedium

benchmark/benchmark_medium_payload_test.go:291–307  ·  view source on GitHub ↗

* github.com/Jeffail/gabs */ 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; me

(b *testing.B)

Source from the content-addressed store, hash-verified

289// MCDC STK-REQ-007: N/A
290// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
291func BenchmarkGabsMedium(b *testing.B) {
292 for i := 0; i < b.N; i++ {
293 json, _ := gabs.ParseJSON(mediumFixture)
294 person := json.Path("person")
295 nothing(
296 person.Path("name.fullName").Data().(string),
297 person.Path("github.followers").Data().(float64),
298 )
299
300 json.Path("company").ChildrenMap()
301
302 arr, _ := person.Path("gravatar.avatars.url").Children()
303 for _, el := range arr {
304 nothing(el.String())
305 }
306 }
307}
308
309/*
310 github.com/bitly/go-simplejson

Callers

nothing calls this directly

Calls 2

nothingFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected