Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 644343.3 Ops/sec
JSON.parse(JSON.stringify()) 397741.3 Ops/sec
recursiveDeepCopy 1698760.6 Ops/sec
fastest-json-copy npm package 2090909.2 Ops/sec
jsondiffpatch.clone() 1482838.5 Ops/sec
rfdc 1296581.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