Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 274038.4 Ops/sec
JSON.parse(JSON.stringify()) 126450.1 Ops/sec
recursiveDeepCopy 300856.0 Ops/sec
fastest-json-copy npm package 217939.1 Ops/sec
jsondiffpatch.clone() 778550.1 Ops/sec
rfdc 811160.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;