* 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)
| 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 |
| 352 | func 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 |