Tests:
-
Object.fromEntries
-
Reduce (reuse object)
-
Reduce (creating temporary objects)
-
For-of
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
24 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Chrome 150 on Linux
View result in a separate tab
Reduce (reuse object)
26K/s
Reduce (creating temporary objects)
3K/s
View exact numbers
| Test name |
Executions per second |
|
✓
For-of
|
25,994 Ops/sec |
|
Reduce (reuse object)
|
25,516 Ops/sec |
|
Object.fromEntries
|
13,825 Ops/sec |
|
Reduce (creating temporary objects)
|
2,677 Ops/sec |
Do you really want to delete benchmark?