Test name | Executions per second |
---|---|
Simple for loop | 14840.1 Ops/sec |
Simple for loop (reverse) | 13601.2 Ops/sec |
Array.forEach | 124768.0 Ops/sec |
for loop + Array.entries | 26350.9 Ops/sec |
while + Array.entries | 26104.6 Ops/sec |
enumerable for loop (order not important) | 13256.7 Ops/sec |
enumerable for loop (order is respected) | 6310.5 Ops/sec |
Array.map | 88344.5 Ops/sec |
Array.filter | 75417.1 Ops/sec |
while + Array.entries (condensed) | 27618.2 Ops/sec |
for loop + Array.entries (condensed) | 24200.2 Ops/sec |
Simple for loop (condensed) | 15403.5 Ops/sec |
Instructionless for loop | 15284.8 Ops/sec |