Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 804139.9 Ops/sec
JSON.parse(JSON.stringify()) 436571.2 Ops/sec
recursiveDeepCopy 4422972.5 Ops/sec
fastest-json-copy npm package 3221514.8 Ops/sec
jsondiffpatch.clone() 2376883.2 Ops/sec
rfdc 2093145.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc