func BenchmarkGabsSmall(b *testing.B) { for i := 0; i < b.N; i++ { json, _ := gabs.ParseJSON(smallFixture) nothing( json.Path("uuid").Data().(string), json.Path("tz").Data().(float64), json.Path("ua").Data().(string), json.Path("st").Data().(float64), ) } }
/* github.com/Jeffail/gabs */ func BenchmarkGabsMedium(b *testing.B) { for i := 0; i < b.N; i++ { json, _ := gabs.ParseJSON(mediumFixture) person := json.Path("person") nothing( person.Path("name.fullName").Data().(string), person.Path("github.followers").Data().(float64), ) json.Path("company").ChildrenMap() arr, _ := person.Path("gravatar.avatars.url").Children() for _, el := range arr { nothing(el.String()) } } }