Array.prototype.concat vs push + flat vs PushFastest: Push (7.6x faster)
66,625,172 ops/sec
15,844,823 ops/sec
8,772,508 ops/sec
Fastest: Push (1.6x faster)
21,457,228 ops/sec
16,838,382 ops/sec
13,016,457 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 | |
| push + flat | |
| Push |
| Test name | Executions per second |
|---|---|
| ✓ Push | 62,650,880 Ops/sec |
| Array.prototype.concat | 11,152,360 Ops/sec |
| push + flat | 6,111,082 Ops/sec |