Push vs LHS spread
Is it fast to build up an array using the spread operator on the left-hand side?
one year ago
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Test name |
Executions per second |
Push |
4749823.0 Ops/sec |
Spread |
167176.5 Ops/sec |
Open this result on MeasureThat.net