array.push vs array.fillFastest: array.fill (2.3x faster)
4,086 ops/sec
1,792 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| array.push | |
| array.fill |
| Test name | Executions per second |
|---|---|
| ✓ array.fill | 3,893 Ops/sec |
| array.push | 1,514 Ops/sec |