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 BenchmarkSetLarge(b *testing.B) { |
| 13 | b.ReportAllocs() |
| 14 | |
| 15 | keyPath := make([]string, 20000) |
| 16 | for i := range keyPath { |
| 17 | keyPath[i] = "keyPath" + strconv.Itoa(i) |
| 18 | } |
| 19 | b.ResetTimer() |
| 20 | for i := 0; i < b.N; i++ { |
| 21 | _, _ = jsonparser.Set(largeFixture, largeFixture, keyPath...) |
| 22 | } |
| 23 | } |