Test name | Executions per second |
---|---|
Using the spread operator | 48292720.0 Ops/sec |
Using Object.assign | 4659826.0 Ops/sec |
Manually copying properties | 832226200.0 Ops/sec |
Create new object while copying | 912528300.0 Ops/sec |
Create new object from scratch | 940334100.0 Ops/sec |