Test name | Executions per second |
---|---|
Using the spread operator | 72973500.0 Ops/sec |
Using Object.assign | 8853062.0 Ops/sec |
Manually copying properties | 663654600.0 Ops/sec |
Create new object while copying | 681035100.0 Ops/sec |
Create new object from scratch | 1120328000.0 Ops/sec |