Test name | Executions per second |
---|---|
Spread | 102648.1 Ops/sec |
Concat | 1072887.6 Ops/sec |
var arr1 = (new Array(100)).fill(0).map((x, i) => i)
var arr2 = (new Array(100)).fill(0).map((x, i) => (i + 1) * 2)
const arr = [arr1, arr2]
const arr = arr1.concat(arr2)