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
1.9M/s
structuredClone
952K/s
View exact numbers
Test name Executions per second
JSON.stringify 1,905,176 Ops/sec
structuredClone 951,560 Ops/sec
Script Preparation code:
Tests: