Test name | Executions per second |
---|---|
Simple for loop | 11589.5 Ops/sec |
Simple for loop (reverse) | 11063.7 Ops/sec |
Array.forEach | 107559.2 Ops/sec |
for loop + Array.entries | 18776.2 Ops/sec |
while + Array.entries | 18411.8 Ops/sec |
enumerable for loop (order not important) | 9823.7 Ops/sec |
enumerable for loop (order is respected) | 4078.2 Ops/sec |
Array.map | 77132.9 Ops/sec |
Array.filter | 61231.4 Ops/sec |
while + Array.entries (condensed) | 20146.9 Ops/sec |
for loop + Array.entries (condensed) | 18251.4 Ops/sec |
Simple for loop (condensed) | 11216.3 Ops/sec |
Instructionless for loop | 11696.4 Ops/sec |