Run details:
Mozilla/5.0 (Linux; Android 12; M2012K11AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 648936.9 Ops/sec
JSON.parse(JSON.stringify()) 396618.1 Ops/sec
recursiveDeepCopy 784030.1 Ops/sec
fastest-json-copy npm package 539113.6 Ops/sec
jsondiffpatch.clone() 2008155.8 Ops/sec
rfdc 2147030.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


;