Test name | Executions per second |
---|---|
concat | 727412.2 Ops/sec |
spread | 726734.1 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]