Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/105.0.5195.147 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 105
iOS 15.6
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 489979.2 Ops/sec
JSON.parse(JSON.stringify()) 260751.4 Ops/sec
recursiveDeepCopy 536107.6 Ops/sec
fastest-json-copy npm package 372461.5 Ops/sec
jsondiffpatch.clone() 1550493.2 Ops/sec
rfdc 1476042.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;