Test name | Executions per second |
---|---|
Simple for loop | 12838.1 Ops/sec |
Simple for loop (reverse) | 12018.6 Ops/sec |
Array.forEach | 126192.8 Ops/sec |
for loop + Array.entries | 21555.5 Ops/sec |
while + Array.entries | 21242.9 Ops/sec |
enumerable for loop (order not important) | 10628.6 Ops/sec |
enumerable for loop (order is respected) | 5020.6 Ops/sec |
Array.map | 85997.5 Ops/sec |
Array.filter | 69869.6 Ops/sec |
while + Array.entries (condensed) | 21678.8 Ops/sec |
for loop + Array.entries (condensed) | 21833.9 Ops/sec |
Simple for loop (condensed) | 12666.5 Ops/sec |
Instructionless for loop | 12753.9 Ops/sec |