HTML Preparation code:
Script Preparation code:
Tests:
  • myCopy = JSON.parse(JSON.stringify(MyObject))

  • myCopy = angular.copy(MyObject)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    myCopy = JSON.parse(JSON.stringify(MyObject))
    myCopy = angular.copy(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 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.36
Chromium 75 on Ubuntu
View result in a separate tab
Test name Executions per second
myCopy = JSON.parse(JSON.stringify(MyObject)) 263.3 Ops/sec
myCopy = angular.copy(MyObject) 172.0 Ops/sec