Test name | Executions per second |
---|---|
Simple for loop | 16959.5 Ops/sec |
Simple for loop (reverse) | 14504.0 Ops/sec |
Array.forEach | 130002.8 Ops/sec |
for loop + Array.entries | 24193.0 Ops/sec |
while + Array.entries | 24141.6 Ops/sec |
enumerable for loop (order not important) | 13160.1 Ops/sec |
enumerable for loop (order is respected) | 6491.9 Ops/sec |
Array.map | 96177.9 Ops/sec |
Array.filter | 79598.3 Ops/sec |
while + Array.entries (condensed) | 24448.0 Ops/sec |
for loop + Array.entries (condensed) | 24402.5 Ops/sec |
Simple for loop (condensed) | 16887.1 Ops/sec |
Instructionless for loop | 16800.2 Ops/sec |