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

Latest run results:
Run details: (Test run date: 5 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)) 2969.2 Ops/sec
myCopy = angular.copy(MyObject) 3523.0 Ops/sec


;