()
| 28 | }; |
| 29 | |
| 30 | const testArrayShift = () => { |
| 31 | let bigArray = makeBigArray(); |
| 32 | const h = createHistogram(); |
| 33 | for (let runs = 0; runs < iterations; runs++) { |
| 34 | h.recordDelta(); |
| 35 | while (bigArray.length) bigArray.shift(); |
| 36 | h.recordDelta(); |
| 37 | bigArray = makeBigArray(); |
| 38 | } |
| 39 | |
| 40 | printHistogram(`shift(${defaultItemsSize}) from Array`, h); |
| 41 | }; |
| 42 | |
| 43 | const testListShift = () => { |
| 44 | const bigList = new List(); |
no test coverage detected