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

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • rfdc

  • structuredClone

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    lodash cloneDeep
    JSON.parse(JSON.stringify())
    recursiveDeepCopy
    fastest-json-copy npm package
    rfdc
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 23 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
lodash cloneDeep 13.6 Ops/sec
JSON.parse(JSON.stringify()) 17.2 Ops/sec
recursiveDeepCopy 91.3 Ops/sec
fastest-json-copy npm package 67.3 Ops/sec
rfdc 64.3 Ops/sec
structuredClone 41.9 Ops/sec