Test name | Executions per second |
---|---|
Using the spread operator | 67834660.0 Ops/sec |
Using Object.assign | 8234306.0 Ops/sec |
Manually copying properties | 614617400.0 Ops/sec |
Create new object while copying | 622698900.0 Ops/sec |
Create new object from scratch | 1028181000.0 Ops/sec |