Test name | Executions per second |
---|---|
concat | 103.3 Ops/sec |
push | 1130.8 Ops/sec |
spread | 41.6 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];
}