Test name | Executions per second |
---|---|
Object.entries -> map -> Object.fromEntries | 805.0 Ops/sec |
Object.entries -> reduce (single object) | 5276.5 Ops/sec |
Object.entries -> map -> reduce (single object) | 5411.3 Ops/sec |
Object.entries -> reduce (temporary objects) | 2570.3 Ops/sec |
Object.entries -> map -> reduce (temporary objects) | 2389.5 Ops/sec |
new map -> loop over object.entries -> Object.fromEntries | 888.2 Ops/sec |