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

Function BenchmarkFFJsonMedium

benchmark/benchmark_medium_payload_test.go:352–363  ·  view source on GitHub ↗

* github.com/pquerna/ffjson */ 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;

(b *testing.B)

Source from the content-addressed store, hash-verified

350// MCDC STK-REQ-007: N/A
351// reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
352func BenchmarkFFJsonMedium(b *testing.B) {
353 for i := 0; i < b.N; i++ {
354 var data MediumPayload
355 ffjson.Unmarshal(mediumFixture, &data)
356
357 nothing(data.Person.Name.FullName, data.Person.Github.Followers, data.Company)
358
359 for _, el := range data.Person.Gravatar.Avatars {
360 nothing(el.Url)
361 }
362 }
363}
364
365/*
366 github.com/bitly/go-simplejson

Callers

nothing calls this directly

Calls 1

nothingFunction · 0.85

Tested by

no test coverage detected