Run details:
Mozilla/5.0 (Linux; Android 11; SM-A405FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 116608.0 Ops/sec
JSON.parse(JSON.stringify()) 60701.4 Ops/sec
recursiveDeepCopy 126945.7 Ops/sec
fastest-json-copy npm package 96850.5 Ops/sec
jsondiffpatch.clone() 339220.8 Ops/sec
rfdc 365545.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc