* github.com/bitly/go-simplejson */ 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 benchm
(b *testing.B)
| 377 | // MCDC STK-REQ-007: N/A |
| 378 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 379 | func BenchmarkJasonMedium(b *testing.B) { |
| 380 | for i := 0; i < b.N; i++ { |
| 381 | json, _ := jason.NewObjectFromBytes(mediumFixture) |
| 382 | |
| 383 | json.GetString("person.name.fullName") |
| 384 | json.GetFloat64("person.github.followers") |
| 385 | json.GetObject("company") |
| 386 | arr, _ := json.GetObjectArray("person.gravatar.avatars") |
| 387 | |
| 388 | for _, el := range arr { |
| 389 | el.GetString("url") |
| 390 | } |
| 391 | |
| 392 | nothing() |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | /* |
| 397 | github.com/mreiferson/go-ujson |