Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Windows
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 917982.8 Ops/sec
JSON.parse(JSON.stringify()) 529423.9 Ops/sec
recursiveDeepCopy 4245236.5 Ops/sec
fastest-json-copy npm package 3879241.0 Ops/sec
jsondiffpatch.clone() 3693391.2 Ops/sec
rfdc 3745496.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


;