for vs foreach vs for..of with reassign vs for..of with no reassign| Test case name | Result |
|---|---|
| for | |
| foreach | |
| for..of with reassign | |
| for..of with no reassign |
| Test name | Executions per second |
|---|---|
| ✓ for | 165 Ops/sec |
| for..of with reassign | 90 Ops/sec |
| foreach | 61 Ops/sec |
| for..of with no reassign | 42 Ops/sec |