Test name | Executions per second |
---|---|
Using the spread operator | 9426794.0 Ops/sec |
Using Object.assign | 9304297.0 Ops/sec |
Manually copying properties | 172205800.0 Ops/sec |
Create new object while copying | 177330700.0 Ops/sec |
Create new object from scratch | 397030200.0 Ops/sec |