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) | 985691.6 Ops/sec |
console.log(a.length) | 17691.1 Ops/sec |
unshift | 39499.0 Ops/sec |
console.log(a.length) - 2 | 18199.9 Ops/sec |