Test name | Executions per second |
---|---|
Using the spread operator | 28394610.0 Ops/sec |
Using Object.assign | 3469903.0 Ops/sec |
Manually copying properties | 1102036000.0 Ops/sec |
Create new object while copying | 1117637000.0 Ops/sec |
Create new object from scratch | 1275422000.0 Ops/sec |
JSON | 579775.3 Ops/sec |