Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Ubuntu
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 480390.6 Ops/sec
JSON.parse(JSON.stringify()) 229108.0 Ops/sec
recursiveDeepCopy 1543513.9 Ops/sec
fastest-json-copy npm package 1731570.2 Ops/sec
jsondiffpatch.clone() 1463536.4 Ops/sec
rfdc 1223019.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;