Test name | Executions per second |
---|---|
Simple for loop | 15795.7 Ops/sec |
Simple for loop (reverse) | 13636.6 Ops/sec |
Array.forEach | 125801.2 Ops/sec |
for loop + Array.entries | 23619.7 Ops/sec |
while + Array.entries | 23633.8 Ops/sec |
enumerable for loop (order not important) | 12333.0 Ops/sec |
enumerable for loop (order is respected) | 6414.2 Ops/sec |
Array.map | 90483.2 Ops/sec |
Array.filter | 73403.5 Ops/sec |
while + Array.entries (condensed) | 23865.1 Ops/sec |
for loop + Array.entries (condensed) | 23848.4 Ops/sec |
Simple for loop (condensed) | 15791.6 Ops/sec |
Instructionless for loop | 15840.5 Ops/sec |