Test name | Executions per second |
---|---|
concat | 720611.2 Ops/sec |
spread | 721196.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]