Tests:
-
Object.assign two objects
-
Spread two objects
-
Object.assign two objects with no empty object first
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Windows
View result in a separate tab
Object.assign two objects with no empty object first
55K/s
Object.assign two objects
16K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Object.assign two objects with no empty object first
|
54,682 Ops/sec |
|
Spread two objects
|
19,808 Ops/sec |
|
Object.assign two objects
|
15,846 Ops/sec |
Do you really want to delete benchmark?