Test name | Executions per second |
---|---|
Simple for loop | 12047.1 Ops/sec |
Simple for loop (reverse) | 10968.3 Ops/sec |
Array.forEach | 122448.0 Ops/sec |
for loop + Array.entries | 21049.3 Ops/sec |
while + Array.entries | 20945.0 Ops/sec |
enumerable for loop (order not important) | 11163.7 Ops/sec |
enumerable for loop (order is respected) | 4966.9 Ops/sec |
Array.map | 87962.7 Ops/sec |
Array.filter | 76042.9 Ops/sec |
while + Array.entries (condensed) | 22179.8 Ops/sec |
for loop + Array.entries (condensed) | 22149.0 Ops/sec |
Simple for loop (condensed) | 12832.7 Ops/sec |
Instructionless for loop | 12799.2 Ops/sec |