JSON.stringify vs structuredCloneFastest: JSON.stringify (2.1x faster)
1,085,355 ops/sec
516,090 ops/sec
Fastest: JSON.stringify (1.4x faster)
944,802 ops/sec
684,861 ops/sec
Fastest: JSON.stringify (1.9x faster)
1,651,859 ops/sec
873,244 ops/sec
Fastest: JSON.stringify (2.4x faster)
968,662 ops/sec
403,980 ops/sec
Fastest: JSON.stringify (2.9x faster)
475,604 ops/sec
165,805 ops/sec
Fastest: JSON.stringify (1.9x faster)
1,652,769 ops/sec
893,018 ops/sec
Fastest: JSON.stringify (1.7x faster)
433,220 ops/sec
260,862 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 | 2,960,335 Ops/sec |
| structuredClone | 1,250,197 Ops/sec |