HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • og hand rolled (still recursive)

  • manual stack

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Lodash cloneDeep
    Json clone
    Ramda clone
    hand rolled
    spread
    obj.assign
    og hand rolled (still recursive)
    manual stack

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81 on Windows
View result in a separate tab
Test name Executions per second
Lodash cloneDeep 167134.0 Ops/sec
Json clone 91488.6 Ops/sec
Ramda clone 284339.0 Ops/sec
hand rolled 177561.7 Ops/sec
spread 1572441.0 Ops/sec
obj.assign 715154.3 Ops/sec
og hand rolled (still recursive) 174099.9 Ops/sec
manual stack 203807.7 Ops/sec

Recommended literature: