JSON.stringify + JSON.parse vs structuredCloneFastest: JSON.stringify + JSON.parse (2.3x faster)
1,042,025 ops/sec
444,876 ops/sec
Fastest: JSON.stringify + JSON.parse (1.3x faster)
1,048,977 ops/sec
791,836 ops/sec
Fastest: JSON.stringify + JSON.parse (4.1x faster)
852,166 ops/sec
209,427 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 + JSON.parse | |
| structuredClone |
| Test name | Executions per second |
|---|---|
| ✓ structuredClone | 1,051,283 Ops/sec |
| JSON.stringify + JSON.parse | 947,104 Ops/sec |