Test name | Executions per second |
---|---|
Using the spread operator | 5237169.0 Ops/sec |
Using Object.assign | 5358804.0 Ops/sec |
Manually copying properties | 25451720.0 Ops/sec |
Create new object while copying | 148198700.0 Ops/sec |
Create new object from scratch | 140060100.0 Ops/sec |