reduce with new array vs reduce with array mutation vs flatMap| Test case name | Result |
|---|---|
| reduce with new array | |
| reduce with array mutation | |
| flatMap |
| Test name | Executions per second |
|---|---|
| ✓ reduce with array mutation | 34,481 Ops/sec |
| flatMap | 5,607 Ops/sec |
| reduce with new array | 29 Ops/sec |