Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 1378980.9 Ops/sec
JSON.parse(JSON.stringify()) 765633.2 Ops/sec
recursiveDeepCopy 7771712.0 Ops/sec
fastest-json-copy npm package 5565838.5 Ops/sec
jsondiffpatch.clone() 3869642.2 Ops/sec
rfdc 3062611.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