Run details:
Mozilla/5.0 (Linux; Android 11; Mi9 Pro 5G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36 EdgA/111.0.1661.59
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 471419.3 Ops/sec
JSON.parse(JSON.stringify()) 261014.3 Ops/sec
recursiveDeepCopy 595514.3 Ops/sec
fastest-json-copy npm package 416777.6 Ops/sec
jsondiffpatch.clone() 1508077.8 Ops/sec
rfdc 1594037.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc