Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/98.0.4758.97 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 98
iOS 15.1
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 961678.9 Ops/sec
JSON.parse(JSON.stringify()) 558050.7 Ops/sec
recursiveDeepCopy 1222451.1 Ops/sec
fastest-json-copy npm package 812215.8 Ops/sec
jsondiffpatch.clone() 3355807.2 Ops/sec
rfdc 3776362.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


;