Test name | Executions per second |
---|---|
concat multiple | 1000.7 Ops/sec |
concat 1 | 1001.0 Ops/sec |
const arr1 = Array.from({ length: 5000}).map((_, i) => i);
const arr2 = Array.from({ length: 5000}).map((_, i) => i);
const arr3 = Array.from({ length: 5000}).map((_, i) => i);
const finallArr1 = arr1.concat(arr2).concat(arr3);
const arr1 = Array.from({ length: 5000}).map((_, i) => i);
const arr2 = Array.from({ length: 5000}).map((_, i) => i);
const arr3 = Array.from({ length: 5000}).map((_, i) => i);
const finallArr1 = arr1.concat(arr2, arr3);