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 benchmark; measures wall-clock time and alloc
(b *testing.B)
| 189 | // MCDC STK-REQ-007: N/A |
| 190 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 191 | func BenchmarkJsonParserSetSmall(b *testing.B) { |
| 192 | for i := 0; i < b.N; i++ { |
| 193 | jsonparser.Set(smallFixture, []byte(`"c90927dd-1588-4fe7-a14f-8a8950cfcbd8"`), "uuid") |
| 194 | jsonparser.Set(smallFixture, []byte("-3"), "tz") |
| 195 | jsonparser.Set(smallFixture, []byte(`"server_agent"`), "ua") |
| 196 | jsonparser.Set(smallFixture, []byte("3"), "st") |
| 197 | |
| 198 | nothing() |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | // Verifies: STK-REQ-001 |
| 203 | // MCDC STK-REQ-001: N/A |