Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.162 Safari/537.36
Chrome 100
Linux
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 399748.4 Ops/sec
JSON.parse(JSON.stringify()) 247622.6 Ops/sec
recursiveDeepCopy 491003.7 Ops/sec
fastest-json-copy npm package 340448.9 Ops/sec
jsondiffpatch.clone() 1252372.4 Ops/sec
rfdc 1283203.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc