Array vs IteratorFastest: Array (5.7x faster)
14,774,904 ops/sec
2,601,342 ops/sec
Fastest: Array (26.7x faster)
24,861,442 ops/sec
930,185 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array | |
| Iterator |
| Test name | Executions per second |
|---|---|
| ✓ Array | 20,802,526 Ops/sec |
| Iterator | 3,402,892 Ops/sec |