| Test case name | Result |
|---|---|
| Object.fromEntries | |
| Reduce (reuse object) | |
| creating temporary objects instead of arrays | |
| use an iterator to avoid unnecessary memory allocation |
| Test name | Executions per second |
|---|---|
| Object.fromEntries | 288.0 Ops/sec |
| Reduce (reuse object) | 438.0 Ops/sec |
| creating temporary objects instead of arrays | 196.7 Ops/sec |
| use an iterator to avoid unnecessary memory allocation | 194.9 Ops/sec |