JSON.stringify + parse vs structuredClone vs just JSON.stringify vs just JSON.parse| Test case name | Result |
|---|---|
| JSON.stringify + parse | |
| structuredClone | |
| just JSON.stringify | |
| just JSON.parse |
| Test name | Executions per second |
|---|---|
| ✓ just JSON.stringify | 3,664 Ops/sec |
| just JSON.parse | 2,847 Ops/sec |
| JSON.stringify + parse | 1,578 Ops/sec |
| structuredClone | 1,199 Ops/sec |