({ n })
| 9 | }); |
| 10 | |
| 11 | function main({ n }) { |
| 12 | const array = []; |
| 13 | for (let i = 0; i < n; ++i) { |
| 14 | array.push(null); |
| 15 | } |
| 16 | bench.start(); |
| 17 | for (let i = 0; i < n; ++i) { |
| 18 | array[i] = createHash('sha1'); |
| 19 | } |
| 20 | bench.end(n); |
| 21 | assert.strictEqual(typeof array[n - 1], 'object'); |
| 22 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…