JSON.stringify vs structuredCloneFastest: JSON.stringify (1.7x faster)
167,362 ops/sec
98,467 ops/sec
Fastest: structuredClone (1.4x faster)
102,952 ops/sec
76,146 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 |
| Test name | Executions per second |
|---|---|
| ✓ JSON.stringify | 297,188 Ops/sec |
| structuredClone | 113,860 Ops/sec |