Test name | Executions per second |
---|---|
Simple for loop | 4884.4 Ops/sec |
Simple for loop (reverse) | 4445.6 Ops/sec |
Array.forEach | 28860.3 Ops/sec |
for loop + Array.entries | 7368.8 Ops/sec |
while + Array.entries | 7422.1 Ops/sec |
enumerable for loop (order not important) | 3706.7 Ops/sec |
enumerable for loop (order is respected) | 1566.5 Ops/sec |
Array.map | 21059.2 Ops/sec |
Array.filter | 18373.5 Ops/sec |
while + Array.entries (condensed) | 7773.9 Ops/sec |
for loop + Array.entries (condensed) | 7468.2 Ops/sec |
Simple for loop (condensed) | 4526.5 Ops/sec |
Instructionless for loop | 4442.8 Ops/sec |