Test name | Executions per second |
---|---|
Simple for loop | 5410.9 Ops/sec |
Simple for loop (reverse) | 4374.2 Ops/sec |
Array.forEach | 60399.4 Ops/sec |
for loop + Array.entries | 5717.9 Ops/sec |
while + Array.entries | 6244.3 Ops/sec |
enumerable for loop (order not important) | 2418.3 Ops/sec |
enumerable for loop (order is respected) | 1311.4 Ops/sec |
Array.map | 104567.8 Ops/sec |
Array.filter | 42905.8 Ops/sec |
while + Array.entries (condensed) | 5663.9 Ops/sec |
for loop + Array.entries (condensed) | 5598.8 Ops/sec |
Simple for loop (condensed) | 4692.3 Ops/sec |
Instructionless for loop | 3227.7 Ops/sec |