Test case name | Result |
---|---|
Array.prototype.concat | |
Lodash concat | |
Array.prototype.push.apply() | |
spread operator | |
cached for + push |
Test name | Executions per second |
---|---|
Array.prototype.concat | 4887110.0 Ops/sec |
Lodash concat | 1920065.0 Ops/sec |
Array.prototype.push.apply() | 2457167.0 Ops/sec |
spread operator | 0.4 Ops/sec |
cached for + push | 1909781.0 Ops/sec |