strucutredClone vs JSON.parse(JSON.stringify())Fastest: JSON.parse(JSON.stringify()) (1.5x faster)
430,146 ops/sec
293,171 ops/sec
Fastest: strucutredClone (1.6x faster)
341,319 ops/sec
220,046 ops/sec
Fastest: JSON.parse(JSON.stringify()) (2.0x faster)
676,022 ops/sec
336,819 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| strucutredClone | |
| JSON.parse(JSON.stringify()) |
| Test name | Executions per second |
|---|---|
| ✓ JSON.parse(JSON.stringify()) | 352,094 Ops/sec |
| strucutredClone | 193,615 Ops/sec |