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 1468450.0 Ops/sec
JSON.parse(JSON.stringify()) 897084.3 Ops/sec
recursiveDeepCopy 7988246.0 Ops/sec
fastest-json-copy npm package 4170050.5 Ops/sec
jsondiffpatch.clone() 4017637.5 Ops/sec
rfdc 4126056.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc