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

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • structuredClone

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
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Linux
View result in a separate tab
Test name Executions per second
Lodash cloneDeep 871915.7 Ops/sec
Json clone 656257.0 Ops/sec
Ramda clone 1365004.6 Ops/sec
hand rolled 796986.0 Ops/sec
spread 8569201.0 Ops/sec
obj.assign 3965943.8 Ops/sec
structuredClone 339913.1 Ops/sec


;