Object.fromEntries vs Reduce (object assign) vs Reduce (creating temporary objects)Fastest: Object.fromEntries (3.9x faster)
218 ops/sec
149 ops/sec
56 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.fromEntries | |
| Reduce (object assign) | |
| Reduce (creating temporary objects) |
| Test name | Executions per second |
|---|---|
| ✓ Reduce (object assign) | 197 Ops/sec |
| Object.fromEntries | 183 Ops/sec |
| Reduce (creating temporary objects) | 0 Ops/sec |