Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.6.1
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 1373162.6 Ops/sec
JSON.parse(JSON.stringify()) 855656.1 Ops/sec
recursiveDeepCopy 1457369.1 Ops/sec
fastest-json-copy npm package 1012427.9 Ops/sec
jsondiffpatch.clone() 3898344.5 Ops/sec
rfdc 4219964.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


;