Test name | Executions per second |
---|---|
Simple for loop | 693028.8 Ops/sec |
Simple for loop (reverse) | 58682.0 Ops/sec |
Array.forEach | 130627.0 Ops/sec |
for loop + Array.entries | 32349.7 Ops/sec |
while + Array.entries | 29325.7 Ops/sec |
enumerable for loop (order not important) | 6729.8 Ops/sec |
enumerable for loop (order is respected) | 36942.6 Ops/sec |
Array.map | 64313.8 Ops/sec |
Array.filter | 92147.4 Ops/sec |
while + Array.entries (condensed) | 44604.2 Ops/sec |
for loop + Array.entries (condensed) | 39218.0 Ops/sec |
Simple for loop (condensed) | 616132.2 Ops/sec |
Instructionless for loop | 679189.6 Ops/sec |