* 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)
| 310 | // MCDC STK-REQ-007: N/A |
| 311 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 312 | func BenchmarkGoSimplejsonSmall(b *testing.B) { |
| 313 | for i := 0; i < b.N; i++ { |
| 314 | json, _ := simplejson.NewJson(smallFixture) |
| 315 | |
| 316 | json.Get("uuid").String() |
| 317 | json.Get("tz").Float64() |
| 318 | json.Get("ua").String() |
| 319 | json.Get("st").Float64() |
| 320 | |
| 321 | nothing() |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | // Verifies: STK-REQ-001 |
| 326 | // MCDC STK-REQ-001: N/A |