Test name | Executions per second |
---|---|
Using the spread operator | 9778538.0 Ops/sec |
Using Object.assign | 7299355.0 Ops/sec |
Manually copying properties | 223387800.0 Ops/sec |
Create new object while copying | 224157300.0 Ops/sec |
Create new object from scratch | 494972600.0 Ops/sec |