Test name | Executions per second |
---|---|
Using the spread operator | 44711840.0 Ops/sec |
Using Object.assign | 3191788.0 Ops/sec |
Manually copying properties | 868221800.0 Ops/sec |
Create new object while copying | 935588700.0 Ops/sec |
Create new object from scratch | 964198400.0 Ops/sec |