for with init array vs for with init length and array vs for ... of vs .map vs .forEach| Test case name | Result |
|---|---|
| for with init array | |
| for with init length and array | |
| for ... of | |
| .map | |
| .forEach |
| Test name | Executions per second |
|---|---|
| ✓ for with init array | 403 Ops/sec |
| for with init length and array | 392 Ops/sec |
| for ... of | 185 Ops/sec |
| .map | 101 Ops/sec |
| .forEach | 96 Ops/sec |