Test name | Executions per second |
---|---|
Using the spread operator | 9818185.0 Ops/sec |
Using Object.assign | 7637639.0 Ops/sec |
Manually copying properties | 230168100.0 Ops/sec |
Create new object while copying | 216429000.0 Ops/sec |
Create new object from scratch | 519963600.0 Ops/sec |