For Loop fill vs Array Fill vs PushFastest: For Loop fill (4.3x faster)
58 ops/sec
50 ops/sec
14 ops/sec
11 ops/sec
11 ops/sec
11 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| For Loop fill | |
| Array Fill | |
| Push |
| Test name | Executions per second |
|---|---|
| ✓ For Loop fill | 197 Ops/sec |
| Array Fill | 174 Ops/sec |
| Push | 43 Ops/sec |