Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 779589.2 Ops/sec
JSON.parse(JSON.stringify()) 497763.3 Ops/sec
recursiveDeepCopy 2453073.2 Ops/sec
fastest-json-copy npm package 3083104.8 Ops/sec
jsondiffpatch.clone() 3155805.0 Ops/sec
rfdc 2918002.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


;