Test name | Executions per second |
---|---|
Using the spread operator | 65528200.0 Ops/sec |
Using Object.assign | 8168133.0 Ops/sec |
Manually copying properties | 619019000.0 Ops/sec |
Create new object while copying | 628483800.0 Ops/sec |
Create new object from scratch | 1031415000.0 Ops/sec |