Test name | Executions per second |
---|---|
Array.prototype.concat | 147925.8 Ops/sec |
spread operator | 17280.6 Ops/sec |
var array = new Array(10000).fill(1)
var toConcat = new Array(5000).fill(2)
var other = array.concat(toConcat);
var other = [ array, toConcat ]