Test name | Executions per second |
---|---|
Simple for loop | 14007.5 Ops/sec |
Simple for loop (reverse) | 13482.1 Ops/sec |
Array.forEach | 135562.0 Ops/sec |
for loop + Array.entries | 24318.5 Ops/sec |
while + Array.entries | 25032.9 Ops/sec |
enumerable for loop (order not important) | 11823.7 Ops/sec |
enumerable for loop (order is respected) | 5651.2 Ops/sec |
Array.map | 99515.6 Ops/sec |
Array.filter | 79703.9 Ops/sec |
while + Array.entries (condensed) | 26094.1 Ops/sec |
for loop + Array.entries (condensed) | 26309.4 Ops/sec |
Simple for loop (condensed) | 14573.8 Ops/sec |
Instructionless for loop | 14412.8 Ops/sec |