Test name | Executions per second |
---|---|
Simple for loop | 7536.0 Ops/sec |
Simple for loop (reverse) | 7221.8 Ops/sec |
Array.forEach | 77206.9 Ops/sec |
for loop + Array.entries | 12331.7 Ops/sec |
while + Array.entries | 12484.8 Ops/sec |
enumerable for loop (order not important) | 6255.7 Ops/sec |
enumerable for loop (order is respected) | 1999.3 Ops/sec |
Array.map | 29236.5 Ops/sec |
Array.filter | 37967.7 Ops/sec |
while + Array.entries (condensed) | 13361.8 Ops/sec |
for loop + Array.entries (condensed) | 10670.6 Ops/sec |
Simple for loop (condensed) | 6978.9 Ops/sec |
Instructionless for loop | 7311.5 Ops/sec |