Test name | Executions per second |
---|---|
Simple for loop | 8627.4 Ops/sec |
Simple for loop (reverse) | 8307.9 Ops/sec |
Array.forEach | 64080.8 Ops/sec |
for loop + Array.entries | 13543.5 Ops/sec |
while + Array.entries | 13615.7 Ops/sec |
enumerable for loop (order not important) | 7084.0 Ops/sec |
enumerable for loop (order is respected) | 3385.7 Ops/sec |
Array.map | 42734.1 Ops/sec |
Array.filter | 33709.6 Ops/sec |
while + Array.entries (condensed) | 14381.9 Ops/sec |
for loop + Array.entries (condensed) | 14387.4 Ops/sec |
Simple for loop (condensed) | 8470.9 Ops/sec |
Instructionless for loop | 8574.2 Ops/sec |