Test name | Executions per second |
---|---|
Simple for loop | 5822.8 Ops/sec |
Simple for loop (reverse) | 5750.1 Ops/sec |
Array.forEach | 63301.5 Ops/sec |
for loop + Array.entries | 9959.2 Ops/sec |
while + Array.entries | 9936.0 Ops/sec |
enumerable for loop (order not important) | 5050.0 Ops/sec |
enumerable for loop (order is respected) | 2184.4 Ops/sec |
Array.map | 49724.1 Ops/sec |
Array.filter | 38423.4 Ops/sec |
while + Array.entries (condensed) | 10207.3 Ops/sec |
for loop + Array.entries (condensed) | 9947.9 Ops/sec |
Simple for loop (condensed) | 5580.1 Ops/sec |
Instructionless for loop | 5931.0 Ops/sec |