Test name | Executions per second |
---|---|
Simple for loop | 905570.3 Ops/sec |
Simple for loop (reverse) | 73461.9 Ops/sec |
Array.forEach | 483139.5 Ops/sec |
for loop + Array.entries | 33659.1 Ops/sec |
while + Array.entries | 38878.5 Ops/sec |
enumerable for loop (order not important) | 11192.7 Ops/sec |
enumerable for loop (order is respected) | 32441.1 Ops/sec |
Array.map | 75255.5 Ops/sec |
Array.filter | 61484.6 Ops/sec |
while + Array.entries (condensed) | 62203.4 Ops/sec |
for loop + Array.entries (condensed) | 58520.0 Ops/sec |
Simple for loop (condensed) | 555664.8 Ops/sec |
Instructionless for loop | 479127.5 Ops/sec |