Test name | Executions per second |
---|---|
Simple for loop | 8730.5 Ops/sec |
Simple for loop (reverse) | 8383.0 Ops/sec |
Array.forEach | 96832.2 Ops/sec |
for loop + Array.entries | 14778.1 Ops/sec |
while + Array.entries | 14897.1 Ops/sec |
enumerable for loop (order not important) | 7466.7 Ops/sec |
enumerable for loop (order is respected) | 3417.5 Ops/sec |
Array.map | 70710.9 Ops/sec |
Array.filter | 56974.1 Ops/sec |
while + Array.entries (condensed) | 14909.6 Ops/sec |
for loop + Array.entries (condensed) | 14939.9 Ops/sec |
Simple for loop (condensed) | 8573.2 Ops/sec |
Instructionless for loop | 8856.3 Ops/sec |