Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 952124.2 Ops/sec
JSON.parse(JSON.stringify()) 588509.3 Ops/sec
recursiveDeepCopy 5229075.0 Ops/sec
fastest-json-copy npm package 3696604.2 Ops/sec
jsondiffpatch.clone() 2694824.0 Ops/sec
rfdc 2949331.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc