JSON.stringify vs structuredClone vs _.cloneDeepFastest: _.cloneDeep (2.9x faster)
1,100,262 ops/sec
947,249 ops/sec
376,493 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| JSON.stringify | |
| structuredClone | |
| _.cloneDeep |
| Test name | Executions per second |
|---|---|
| ✓ _.cloneDeep | 861,007 Ops/sec |
| JSON.stringify | 555,022 Ops/sec |
| structuredClone | 285,111 Ops/sec |