Test case name | Result |
---|---|
Object.fromEntries | |
Reduce (reuse object) | |
Reduce (creating temporary objects) | |
Object.assign |
Test name | Executions per second |
---|---|
Object.fromEntries | 337.3 Ops/sec |
Reduce (reuse object) | 3035.9 Ops/sec |
Reduce (creating temporary objects) | 107.7 Ops/sec |
Object.assign | 284.3 Ops/sec |