Benchmark, spread vs. concat vs. push in Array push item
spread, concat, push efficiency
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 |
spread |
28.0 Ops/sec |
concat |
5.9 Ops/sec |
push |
25463.8 Ops/sec |
Open this result on MeasureThat.net