Test name | Executions per second |
---|---|
Simple for loop | 16738.0 Ops/sec |
Simple for loop (reverse) | 14766.0 Ops/sec |
Array.forEach | 130749.8 Ops/sec |
for loop + Array.entries | 28590.4 Ops/sec |
while + Array.entries | 28601.3 Ops/sec |
enumerable for loop (order not important) | 14232.3 Ops/sec |
enumerable for loop (order is respected) | 6731.0 Ops/sec |
Array.map | 95897.3 Ops/sec |
Array.filter | 79715.9 Ops/sec |
while + Array.entries (condensed) | 29855.9 Ops/sec |
for loop + Array.entries (condensed) | 29903.1 Ops/sec |
Simple for loop (condensed) | 16776.1 Ops/sec |
Instructionless for loop | 16747.7 Ops/sec |