Run details:
Mozilla/5.0 (Linux; Android 11; M2004J19C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
lodash cloneDeep 210498.4 Ops/sec
JSON.parse(JSON.stringify()) 98953.1 Ops/sec
recursiveDeepCopy 229296.8 Ops/sec
fastest-json-copy npm package 170181.3 Ops/sec
jsondiffpatch.clone() 669145.6 Ops/sec
rfdc 664461.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;