()
| 69 | }; |
| 70 | |
| 71 | const testArrayPush = () => { |
| 72 | const bigArray = []; |
| 73 | const h = createHistogram(); |
| 74 | for (let runs = 0; runs < iterations; runs++) { |
| 75 | h.recordDelta(); |
| 76 | for (let i = 0; i < defaultItemsSize; i++) bigArray.push(1); |
| 77 | h.recordDelta(); |
| 78 | bigArray.length = 0; |
| 79 | } |
| 80 | |
| 81 | printHistogram(`push(${defaultItemsSize}) to Array`, h); |
| 82 | }; |
| 83 | |
| 84 | const testListPush = () => { |
| 85 | const bigList = new List(); |
no test coverage detected