Script Preparation code:
Tests:
  • structuredClone(myObject)

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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    structuredClone(myObject)
    JSON.parse(JSON.stringify(myObject))

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 4 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Linux
View result in a separate tab
Test name Executions per second
structuredClone(myObject) 156312.0 Ops/sec
JSON.parse(JSON.stringify(myObject)) 207797.1 Ops/sec