Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 858811.1 Ops/sec
JSON.parse(JSON.stringify()) 505454.7 Ops/sec
recursiveDeepCopy 3864254.2 Ops/sec
fastest-json-copy npm package 3458444.0 Ops/sec
jsondiffpatch.clone() 3352525.8 Ops/sec
rfdc 3243075.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;