Test name | Executions per second |
---|---|
Using the spread operator | 22143970.0 Ops/sec |
Using Object.assign | 3239793.0 Ops/sec |
Manually copying properties | 58082560.0 Ops/sec |
Create new object while copying | 55810280.0 Ops/sec |
Create new object from scratch | 60712770.0 Ops/sec |