Test case name | Result |
---|---|
Array.prototype.slice -- long -- no additions | |
spread operator -- long -- no additions | |
Array.prototype.slice -- long -- add another | |
spread operator -- long -- add another | |
Array.prototype.slice -- short -- no additions | |
spread operator -- short -- no additions | |
Array.prototype.slice -- short -- add a few | |
spread operator -- short -- add a few |
Test name | Executions per second |
---|---|
Array.prototype.slice -- long -- no additions | 9211.0 Ops/sec |
spread operator -- long -- no additions | 10279.6 Ops/sec |
Array.prototype.slice -- long -- add another | 2828.9 Ops/sec |
spread operator -- long -- add another | 1400.8 Ops/sec |
Array.prototype.slice -- short -- no additions | 10097662.0 Ops/sec |
spread operator -- short -- no additions | 9589077.0 Ops/sec |
Array.prototype.slice -- short -- add a few | 3433518.5 Ops/sec |
spread operator -- short -- add a few | 7679565.5 Ops/sec |