* github.com/pquerna/ffjson */ 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 reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable
(b *testing.B)
| 105 | // MCDC STK-REQ-004: N/A |
| 106 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 107 | func BenchmarkFFJsonLarge(b *testing.B) { |
| 108 | for i := 0; i < b.N; i++ { |
| 109 | var data LargePayload |
| 110 | ffjson.Unmarshal(largeFixture, &data) |
| 111 | |
| 112 | for _, u := range data.Users { |
| 113 | nothing(u.Username) |
| 114 | } |
| 115 | |
| 116 | for _, t := range data.Topics.Topics { |
| 117 | nothing(t.Id, t.Slug) |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | /* |
| 123 | github.com/mailru/easyjson |