* github.com/mreiferson/go-ujson */ 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)
| 411 | // MCDC STK-REQ-007: N/A |
| 412 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 413 | func BenchmarkUjsonSmall(b *testing.B) { |
| 414 | for i := 0; i < b.N; i++ { |
| 415 | json, _ := ujson.NewFromBytes(smallFixture) |
| 416 | |
| 417 | json.Get("uuid").String() |
| 418 | json.Get("tz").Float64() |
| 419 | json.Get("ua").String() |
| 420 | json.Get("st").Float64() |
| 421 | |
| 422 | nothing() |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | /* |
| 427 | github.com/a8m/djson |