Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Linux
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 779747.3 Ops/sec
JSON.parse(JSON.stringify()) 527979.5 Ops/sec
recursiveDeepCopy 4525985.5 Ops/sec
fastest-json-copy npm package 3255990.5 Ops/sec
jsondiffpatch.clone() 2966785.0 Ops/sec
rfdc 2928148.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc