Run details:
Mozilla/5.0 (Android 11; Mobile; rv:97.0) Gecko/97.0 Firefox/97.0
Firefox Mobile 97
Android
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 292270.2 Ops/sec
JSON.parse(JSON.stringify()) 91375.3 Ops/sec
recursiveDeepCopy 861252.1 Ops/sec
fastest-json-copy npm package 1394104.5 Ops/sec
jsondiffpatch.clone() 1230821.9 Ops/sec
rfdc 1310516.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;