Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0
Chrome 146
Windows
Desktop
4 months ago
JSON.parse(JSON.stringify())
380K/s
strucutredClone
209K/s
View exact numbers
Test name Executions per second
JSON.parse(JSON.stringify()) 380,280 Ops/sec
strucutredClone 208,891 Ops/sec
Script Preparation code:
Tests: