Run details:
Mozilla/5.0 (Linux; Android 10; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 129158.9 Ops/sec
JSON.parse(JSON.stringify()) 64830.8 Ops/sec
recursiveDeepCopy 191004.6 Ops/sec
fastest-json-copy npm package 130914.3 Ops/sec
jsondiffpatch.clone() 441451.0 Ops/sec
rfdc 426437.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;