Test name | Executions per second |
---|---|
concat | 714427.8 Ops/sec |
spread | 719735.4 Ops/sec |
const a1 = new Array(5).fill(undefined).map(a => Math.random() * 100);
const a2 = new Array(5).fill(undefined).map(a => Math.random() * 100);
const a3 = a1.concat(a2)
const a1 = new Array(5).fill(undefined).map(a => Math.random() * 100);
const a2 = new Array(5).fill(undefined).map(a => Math.random() * 100);
const a3 = [a1,a2]