JSON.parse + JSON.stringify vs structuredCloneFastest: JSON.parse + JSON.stringify (1.4x faster)
1 ops/sec
1 ops/sec
Fastest: JSON.parse + JSON.stringify (1.3x faster)
1 ops/sec
1 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| JSON.parse + JSON.stringify | |
| structuredClone |
| Test name | Executions per second |
|---|---|
| ✓ JSON.parse + JSON.stringify | 1 Ops/sec |
| structuredClone | 1 Ops/sec |