Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 691550.5 Ops/sec
JSON.parse(JSON.stringify()) 450141.9 Ops/sec
recursiveDeepCopy 2011304.1 Ops/sec
fastest-json-copy npm package 3139042.0 Ops/sec
jsondiffpatch.clone() 3201287.5 Ops/sec
rfdc 3081366.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


;