Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Mac OS X 10.15.7
Desktop
one year ago
JSON.stringify
86K/s
structuredClone
39K/s
View exact numbers
Test name Executions per second
JSON.stringify 85,670 Ops/sec
structuredClone 39,391 Ops/sec
Script Preparation code:
Tests: