for..of (destructuring) vs .map vs .map (destructuring) vs .for (init array) vs .reduce vs .reduce (destructuring) vs for..of (reduce) vs for..of (reduce) (destructuring)| Test case name | Result |
|---|---|
| for..of (destructuring) | |
| .map | |
| .map (destructuring) | |
| .for (init array) | |
| .reduce | |
| .reduce (destructuring) | |
| for..of (reduce) | |
| for..of (reduce) (destructuring) |
| Test name | Executions per second |
|---|---|
| ✓ .for (init array) | 102 Ops/sec |
| .reduce | 78 Ops/sec |
| for..of (reduce) | 77 Ops/sec |
| for..of (reduce) (destructuring) | 72 Ops/sec |
| .reduce (destructuring) | 72 Ops/sec |
| for..of (destructuring) | 54 Ops/sec |
| .map (destructuring) | 52 Ops/sec |
| .map | 48 Ops/sec |