Array.prototype.concat vs spread operator vs Push vs Array.prototype.push.applyFastest: Push (6.3x faster)
91,199,392 ops/sec
71,128,824 ops/sec
17,973,734 ops/sec
14,564,434 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.prototype.concat | |
| spread operator | |
| Push | |
| Array.prototype.push.apply |
| Test name | Executions per second |
|---|---|
| ✓ Push | 36,156,740 Ops/sec |
| spread operator | 35,024,260 Ops/sec |
| Array.prototype.push.apply | 26,818,246 Ops/sec |
| Array.prototype.concat | 10,726,975 Ops/sec |