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) | 2,513 Ops/sec |
| Object.fromEntries (with transform data) | 1,383 Ops/sec |
| Reduce (creating temporary objects) | 87 Ops/sec |