Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Android
Desktop
2 months ago
Test name Executions per second
lodash cloneDeep 385605.2 Ops/sec
JSON.parse(JSON.stringify()) 370233.6 Ops/sec
recursiveDeepCopy 535132.4 Ops/sec
fastest-json-copy npm package 369014.2 Ops/sec
jsondiffpatch.clone() 1227612.8 Ops/sec
rfdc 1314255.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