Test name | Executions per second |
---|---|
Simple for loop | 14606.6 Ops/sec |
Simple for loop (reverse) | 15097.7 Ops/sec |
Array.forEach | 158544.5 Ops/sec |
for loop + Array.entries | 27711.8 Ops/sec |
while + Array.entries | 27623.6 Ops/sec |
enumerable for loop (order not important) | 13022.6 Ops/sec |
enumerable for loop (order is respected) | 5927.5 Ops/sec |
Array.map | 107178.6 Ops/sec |
Array.filter | 85887.2 Ops/sec |
while + Array.entries (condensed) | 28249.1 Ops/sec |
for loop + Array.entries (condensed) | 28409.4 Ops/sec |
Simple for loop (condensed) | 15103.4 Ops/sec |
Instructionless for loop | 13371.5 Ops/sec |