Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.6 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.8
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 435761.2 Ops/sec
JSON.parse(JSON.stringify()) 233642.8 Ops/sec
recursiveDeepCopy 470821.8 Ops/sec
fastest-json-copy npm package 307851.5 Ops/sec
jsondiffpatch.clone() 1308641.2 Ops/sec
rfdc 1456129.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;