Array vs IteratorFastest: Array (4.5x faster)
17,701 ops/sec
3,903 ops/sec
Fastest: Array (10.5x faster)
15,076 ops/sec
1,439 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 | 7,521 Ops/sec |
| Iterator | 718 Ops/sec |