Test name | Executions per second |
---|---|
Simple for loop | 12405.3 Ops/sec |
Simple for loop (reverse) | 7318.7 Ops/sec |
Array.forEach | 89267.4 Ops/sec |
for loop + Array.entries | 17146.1 Ops/sec |
while + Array.entries | 21631.0 Ops/sec |
enumerable for loop (order not important) | 10496.6 Ops/sec |
enumerable for loop (order is respected) | 4776.2 Ops/sec |
Array.map | 85764.9 Ops/sec |
Array.filter | 64791.5 Ops/sec |
while + Array.entries (condensed) | 10346.8 Ops/sec |
for loop + Array.entries (condensed) | 22124.9 Ops/sec |
Simple for loop (condensed) | 12865.5 Ops/sec |
Instructionless for loop | 11528.8 Ops/sec |