Lodash cloneDeep vs Native structuredClone vs JSON.parse(JSON.stringify(obj))| Test case name | Result |
|---|---|
| Lodash cloneDeep | |
| Native structuredClone | |
| JSON.parse(JSON.stringify(obj)) |
| Test name | Executions per second |
|---|---|
| ✓ JSON.parse(JSON.stringify(obj)) | 294 Ops/sec |
| Native structuredClone | 265 Ops/sec |
| Lodash cloneDeep | 112 Ops/sec |