Test case name | Result |
---|---|
[123].concat(a) | |
console.log(a.length) | |
unshift | |
console.log(a.length) - 2 |
Test name | Executions per second |
---|---|
[123].concat(a) | 64307.1 Ops/sec |
console.log(a.length) | 101421.0 Ops/sec |
unshift | 30766.0 Ops/sec |
console.log(a.length) - 2 | 17043.9 Ops/sec |