Test name | Executions per second |
---|---|
Array.map with Object.fromEntries | 942.2 Ops/sec |
Array.map with new Map | 916.1 Ops/sec |
Reduce with new Object (`{}`) (reusing object) | 4037.8 Ops/sec |
Reduce with new Object (`{}`) (creating temporary objects) | 37.3 Ops/sec |
Reduce with new Map (reusing map) | 1158.3 Ops/sec |