Run details:
Mozilla/5.0 (Linux; Android 12; M2101K7AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 286433.2 Ops/sec
JSON.parse(JSON.stringify()) 166338.4 Ops/sec
recursiveDeepCopy 329694.3 Ops/sec
fastest-json-copy npm package 252663.0 Ops/sec
jsondiffpatch.clone() 894533.6 Ops/sec
rfdc 903047.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