Test case name | Result |
---|---|
Using the spread operator | |
Using Object.assign | |
Manual property assignment |
Test name | Executions per second |
---|---|
Using the spread operator | 5958957.0 Ops/sec |
Using Object.assign | 11186670.0 Ops/sec |
Manual property assignment | 988329200.0 Ops/sec |