Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Windows
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 1061141.0 Ops/sec
JSON.parse(JSON.stringify()) 611172.2 Ops/sec
recursiveDeepCopy 4316241.0 Ops/sec
fastest-json-copy npm package 5806731.0 Ops/sec
jsondiffpatch.clone() 5922642.5 Ops/sec
rfdc 6325814.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


;