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) | 28545.7 Ops/sec |
console.log(a.length) | 17526.7 Ops/sec |
unshift | 6334.2 Ops/sec |
console.log(a.length) - 2 | 16612.5 Ops/sec |