Test name | Executions per second |
---|---|
Simple for loop | 453478.1 Ops/sec |
Simple for loop (reverse) | 10287.7 Ops/sec |
Array.forEach | 374898.6 Ops/sec |
for loop + Array.entries | 26441.7 Ops/sec |
while + Array.entries | 25626.1 Ops/sec |
enumerable for loop (order not important) | 5028.2 Ops/sec |
enumerable for loop (order is respected) | 20876.6 Ops/sec |
Array.map | 59965.3 Ops/sec |
Array.filter | 47042.2 Ops/sec |
while + Array.entries (condensed) | 37020.8 Ops/sec |
for loop + Array.entries (condensed) | 37217.7 Ops/sec |
Simple for loop (condensed) | 445656.3 Ops/sec |
Instructionless for loop | 473306.2 Ops/sec |