Object.fromEntries (with transform data) vs Reduce (reuse object) vs Reduce (creating temporary objects)| Test case name | Result |
|---|---|
| Object.fromEntries (with transform data) | |
| Reduce (reuse object) | |
| Reduce (creating temporary objects) |
| Test name | Executions per second |
|---|---|
| ✓ Reduce (reuse object) | 13,023 Ops/sec |
| Object.fromEntries (with transform data) | 2,076 Ops/sec |
| Reduce (creating temporary objects) | 96 Ops/sec |