Test name | Executions per second |
---|---|
Simple for loop | 5068.0 Ops/sec |
Simple for loop (reverse) | 676.9 Ops/sec |
Array.forEach | 4821.8 Ops/sec |
for loop + Array.entries | 383.2 Ops/sec |
while + Array.entries | 414.7 Ops/sec |
enumerable for loop (order not important) | 45.6 Ops/sec |
enumerable for loop (order is respected) | 368.7 Ops/sec |
Array.map | 654.3 Ops/sec |
Array.filter | 714.8 Ops/sec |
while + Array.entries (condensed) | 578.8 Ops/sec |
for loop + Array.entries (condensed) | 584.0 Ops/sec |
Simple for loop (condensed) | 4903.7 Ops/sec |
Instructionless for loop | 5613.1 Ops/sec |