Test name | Executions per second |
---|---|
Using the spread operator | 26993640.0 Ops/sec |
Using Object.assign | 2507569.0 Ops/sec |
Manually copying properties | 676149600.0 Ops/sec |
Create new object while copying | 710995800.0 Ops/sec |
Create new object from scratch | 742106300.0 Ops/sec |
JSON | 416964.2 Ops/sec |