array operations vs generators vs for loopFastest: array operations (1.2x faster)
64 ops/sec
61 ops/sec
55 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| array operations | |
| generators | |
| for loop |
| Test name | Executions per second |
|---|---|
| ✓ array operations | 65 Ops/sec |
| generators | 61 Ops/sec |
| for loop | 55 Ops/sec |