Test case name | Result |
---|---|
push spread operator | |
Lodash concat | |
Array.prototype.push.apply() | |
spread operator | |
Array.prototype.concat | |
forEach push |
Test name | Executions per second |
---|---|
push spread operator | 99.6 Ops/sec |
Lodash concat | 163.8 Ops/sec |
Array.prototype.push.apply() | 124.2 Ops/sec |
spread operator | 51.5 Ops/sec |
Array.prototype.concat | 133.7 Ops/sec |
forEach push | 137.2 Ops/sec |