Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36
Chrome Mobile 118
Android
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 301872.2 Ops/sec
JSON.parse(JSON.stringify()) 184496.3 Ops/sec
recursiveDeepCopy 293961.9 Ops/sec
fastest-json-copy npm package 195329.5 Ops/sec
jsondiffpatch.clone() 812391.2 Ops/sec
rfdc 895496.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