Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 OPR/115.0.0.0
Opera 115
Linux
Desktop
5 days ago
Test name Executions per second
lodash cloneDeep 731345.6 Ops/sec
JSON.parse(JSON.stringify()) 647760.5 Ops/sec
recursiveDeepCopy 2623281.0 Ops/sec
fastest-json-copy npm package 2284284.0 Ops/sec
jsondiffpatch.clone() 2629170.5 Ops/sec
rfdc 2744523.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