Object.fromEntries vs Reduce (reuse object) vs creating temporary objects instead of arrays vs use an iterator to avoid unnecessary memory allocation| 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 |
|---|---|
| ✓ Reduce (reuse object) | 438 Ops/sec |
| Object.fromEntries | 288 Ops/sec |
| creating temporary objects instead of arrays | 197 Ops/sec |
| use an iterator to avoid unnecessary memory allocation | 195 Ops/sec |