Test name | Executions per second |
---|---|
Array.fill | 116.8 Ops/sec |
Array.from | 139.2 Ops/sec |
new Array(200000).fill({ a: 1}).map(function(value, index) { return {value, id: index}})
Array.from({length: 200000}, function(_v, index) { return { a: 1, id: index}})