Test name | Executions per second |
---|---|
Using the spread operator | 6154663.0 Ops/sec |
Using Object.assign | 3607687.0 Ops/sec |
Manually copying properties | 94581540.0 Ops/sec |
Create new object while copying | 95490830.0 Ops/sec |
Create new object from scratch | 326091600.0 Ops/sec |
JSON | 621177.3 Ops/sec |