Test name | Executions per second |
---|---|
concat | 64.1 Ops/sec |
push | 146.8 Ops/sec |
spread | 3.2 Ops/sec |
var params = new Array(1000);
let other = [];
for (let x = 0; x < 100; ++x) {
other = other.concat(params);
}
var params = new Array(1000);
let other = [];
for (let x = 0; x < 100; ++x) {
other.push(params);
}
var params = new Array(1000);
let other = [];
for (let x = 0; x < 100; ++x) {
other = [other, params];
}