DeepClone vs JSON.stringifyFastest: JSON.stringify (3.2x faster)
56,941 ops/sec
17,562 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| DeepClone | |
| JSON.stringify |
| Test name | Executions per second |
|---|---|
| ✓ DeepClone | 246,233 Ops/sec |
| JSON.stringify | 138,912 Ops/sec |