Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference
(b *testing.B)
| 10 | // MCDC STK-REQ-005: N/A |
| 11 | // reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-deterministic and not comparable to an independent reference |
| 12 | func BenchmarkDeleteSmall(b *testing.B) { |
| 13 | b.ReportAllocs() |
| 14 | b.ResetTimer() |
| 15 | for i := 0; i < b.N; i++ { |
| 16 | data1 := []byte(`{ "instanceId": 1, "ip": "10.10.10.10", "services": [ { "id": 1, "name": "srv1" } ] }`) |
| 17 | _ = jsonparser.Delete(data1, "services") |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | // Verifies: STK-REQ-005 |
| 22 | // MCDC STK-REQ-005: N/A |