* 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
(b *testing.B)
| 281 | // Verifies: STK-REQ-007 |
| 282 | // MCDC STK-REQ-007: N/A |
| 283 | func BenchmarkGabsMedium(b *testing.B) { |
| 284 | for i := 0; i < b.N; i++ { |
| 285 | json, _ := gabs.ParseJSON(mediumFixture) |
| 286 | person := json.Path("person") |
| 287 | nothing( |
| 288 | person.Path("name.fullName").Data().(string), |
| 289 | person.Path("github.followers").Data().(float64), |
| 290 | ) |
| 291 | |
| 292 | json.Path("company").ChildrenMap() |
| 293 | |
| 294 | arr, _ := person.Path("gravatar.avatars.url").Children() |
| 295 | for _, el := range arr { |
| 296 | nothing(el.String()) |
| 297 | } |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | /* |
| 302 | github.com/bitly/go-simplejson |