Test case name | Result |
---|---|
Object.entries -> map -> Object.fromEntries | |
Object.entries -> reduce (single object) | |
Object.entries -> map -> reduce (single object) | |
Object.entries -> reduce (temporary objects) | |
Object.entries -> map -> reduce (temporary objects) | |
new map -> loop over object.entries -> Object.fromEntries |
Test name | Executions per second |
---|---|
Object.entries -> map -> Object.fromEntries | 1960.4 Ops/sec |
Object.entries -> reduce (single object) | 11012.0 Ops/sec |
Object.entries -> map -> reduce (single object) | 10919.3 Ops/sec |
Object.entries -> reduce (temporary objects) | 5931.0 Ops/sec |
Object.entries -> map -> reduce (temporary objects) | 5628.8 Ops/sec |
new map -> loop over object.entries -> Object.fromEntries | 1693.9 Ops/sec |