Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 1516131.4 Ops/sec
JSON.parse(JSON.stringify()) 974633.9 Ops/sec
recursiveDeepCopy 10431422.0 Ops/sec
fastest-json-copy npm package 6584985.5 Ops/sec
jsondiffpatch.clone() 4329059.5 Ops/sec
rfdc 3516905.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;