Test name | Executions per second |
---|---|
Using the spread operator | 5982193.0 Ops/sec |
Using Object.assign | 3510799.0 Ops/sec |
Manually copying properties | 93114740.0 Ops/sec |
Create new object while copying | 94445120.0 Ops/sec |
Create new object from scratch | 305625200.0 Ops/sec |
JSON | 624317.0 Ops/sec |