Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36
Chrome Mobile 123
Android
Mobile
8 months ago
Test name Executions per second
lodash cloneDeep 891340.3 Ops/sec
JSON.parse(JSON.stringify()) 666472.6 Ops/sec
recursiveDeepCopy 1047228.4 Ops/sec
fastest-json-copy npm package 758774.6 Ops/sec
jsondiffpatch.clone() 2587255.5 Ops/sec
rfdc 2852366.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;