for vs foreach vs some vs for..of vs for with cached length| Test case name | Result |
|---|---|
| for | |
| foreach | |
| some | |
| for..of | |
| for with cached length |
| Test name | Executions per second |
|---|---|
| ✓ for | 20,698,280 Ops/sec |
| for with cached length | 19,945,734 Ops/sec |
| some | 12,567,482 Ops/sec |
| foreach | 7,517,727 Ops/sec |
| for..of | 1,380,676 Ops/sec |