interpolation vs JSON.stringifyFastest: interpolation (5.6x faster)
165,048,416 ops/sec
29,312,578 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| interpolation | |
| JSON.stringify |
| Test name | Executions per second |
|---|---|
| ✓ interpolation | 84,950,976 Ops/sec |
| JSON.stringify | 17,184,722 Ops/sec |