Test name | Executions per second |
---|---|
Simple for loop | 7770.4 Ops/sec |
Simple for loop (reverse) | 7577.1 Ops/sec |
Array.forEach | 69887.6 Ops/sec |
for loop + Array.entries | 12582.6 Ops/sec |
while + Array.entries | 12574.5 Ops/sec |
enumerable for loop (order not important) | 6758.0 Ops/sec |
enumerable for loop (order is respected) | 2973.3 Ops/sec |
Array.map | 46384.5 Ops/sec |
Array.filter | 40023.3 Ops/sec |
while + Array.entries (condensed) | 13578.0 Ops/sec |
for loop + Array.entries (condensed) | 13528.0 Ops/sec |
Simple for loop (condensed) | 7776.2 Ops/sec |
Instructionless for loop | 7727.1 Ops/sec |