JSON.stringify vs recursive for-loopFastest: recursive for-loop (29.7x faster)
13,740,472 ops/sec
462,941 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 | |
| recursive for-loop |
| Test name | Executions per second |
|---|---|
| ✓ recursive for-loop | 292,508 Ops/sec |
| JSON.stringify | 11,743 Ops/sec |