Test name | Executions per second |
---|---|
Using the spread operator | 59948120.0 Ops/sec |
Using Object.assign | 8095976.0 Ops/sec |
Manually copying properties | 600185900.0 Ops/sec |
Create new object while copying | 628089400.0 Ops/sec |
Create new object from scratch | 1039648000.0 Ops/sec |