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