Test name | Executions per second |
---|---|
Using the spread operator | 4568378.0 Ops/sec |
Using Object.assign | 4198102.0 Ops/sec |
Manually copying properties | 25743120.0 Ops/sec |
Create new object while copying | 233508400.0 Ops/sec |
Create new object from scratch | 253797200.0 Ops/sec |
JSON | 554665.6 Ops/sec |