Test name | Executions per second |
---|---|
Simple for loop | 918178.3 Ops/sec |
Simple for loop (reverse) | 13842.8 Ops/sec |
Array.forEach | 492359.6 Ops/sec |
for loop + Array.entries | 38729.7 Ops/sec |
while + Array.entries | 37184.0 Ops/sec |
enumerable for loop (order not important) | 10629.0 Ops/sec |
enumerable for loop (order is respected) | 38748.7 Ops/sec |
Array.map | 95948.5 Ops/sec |
Array.filter | 77947.7 Ops/sec |
while + Array.entries (condensed) | 56856.4 Ops/sec |
for loop + Array.entries (condensed) | 53230.8 Ops/sec |
Simple for loop (condensed) | 563970.0 Ops/sec |
Instructionless for loop | 488424.2 Ops/sec |