Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
one year ago
JSON.parse(JSON.stringify(myObject))
208K/s
structuredClone(myObject)
156K/s
View exact numbers
Test name Executions per second
JSON.parse(JSON.stringify(myObject)) 207,797 Ops/sec
structuredClone(myObject) 156,312 Ops/sec
Script Preparation code:
Tests: