Test name | Executions per second |
---|---|
Using the spread operator | 49061770.0 Ops/sec |
Using Object.assign | 4286886.0 Ops/sec |
Manually copying properties | 521690900.0 Ops/sec |
Create new object while copying | 510394500.0 Ops/sec |
Create new object from scratch | 1022592000.0 Ops/sec |