Tests:
-
Object.fromEntries (with transform data)
-
Reduce (reuse object)
-
Reduce (creating temporary objects)
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Mac OS X 10.15.7
View result in a separate tab
Reduce (reuse object)
264K/s
Object.fromEntries (with transform data)
147K/s
Reduce (creating temporary objects)
111K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Reduce (reuse object)
|
263,755 Ops/sec |
|
Object.fromEntries (with transform data)
|
147,094 Ops/sec |
|
Reduce (creating temporary objects)
|
110,728 Ops/sec |
Do you really want to delete benchmark?