Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Linux
Desktop
one month ago
Test name Executions per second
structuredClone(myObject) 156312.0 Ops/sec
JSON.parse(JSON.stringify(myObject)) 207797.1 Ops/sec
Script Preparation code:
Tests:
  • structuredClone(myObject)

  • JSON.parse(JSON.stringify(myObject))


;