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

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc

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
    jsondiffpatch.clone()
    rfdc

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0
Opera 115 on Linux
View result in a separate tab
Test name Executions per second
lodash cloneDeep 731345.6 Ops/sec
JSON.parse(JSON.stringify()) 647760.5 Ops/sec
recursiveDeepCopy 2623281.0 Ops/sec
fastest-json-copy npm package 2284284.0 Ops/sec
jsondiffpatch.clone() 2629170.5 Ops/sec
rfdc 2744523.0 Ops/sec