Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Linux
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 1386520.2 Ops/sec
JSON.parse(JSON.stringify()) 753650.3 Ops/sec
recursiveDeepCopy 4166993.5 Ops/sec
fastest-json-copy npm package 5113074.5 Ops/sec
jsondiffpatch.clone() 5224423.0 Ops/sec
rfdc 5163715.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