Test case name | Result |
---|---|
Using the spread operator | |
Using Object.assign | |
Using lodash.clone | |
Using JSON |
Test name | Executions per second |
---|---|
Using the spread operator | 74889330.0 Ops/sec |
Using Object.assign | 7092029.0 Ops/sec |
Using lodash.clone | 2028223.0 Ops/sec |
Using JSON | 928990.4 Ops/sec |