Test name | Executions per second |
---|---|
.forEach | 44.4 Ops/sec |
for..of | 46.3 Ops/sec |
for..of (destructuring) | 41.5 Ops/sec |
.map | 42.2 Ops/sec |
.map (destructuring) | 41.7 Ops/sec |
.for (init array) | 45.9 Ops/sec |
.reduce | 41.8 Ops/sec |
.reduce (destructuring) | 42.1 Ops/sec |
for..of (reduce) | 44.9 Ops/sec |
for..of (reduce) (destructuring) | 47.2 Ops/sec |