Test name | Executions per second |
---|---|
Simple for loop | 5449.7 Ops/sec |
Simple for loop (reverse) | 5305.3 Ops/sec |
Array.forEach | 61344.4 Ops/sec |
for loop + Array.entries | 9475.7 Ops/sec |
while + Array.entries | 9438.3 Ops/sec |
enumerable for loop (order not important) | 4635.8 Ops/sec |
enumerable for loop (order is respected) | 2169.4 Ops/sec |
Array.map | 45516.0 Ops/sec |
Array.filter | 37364.8 Ops/sec |
while + Array.entries (condensed) | 9694.2 Ops/sec |
for loop + Array.entries (condensed) | 9756.3 Ops/sec |
Simple for loop (condensed) | 5406.9 Ops/sec |
Instructionless for loop | 5439.2 Ops/sec |