Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Mac OS X 10.15
Desktop
8 months ago
Test name Executions per second
lodash cloneDeep 13.2 Ops/sec
JSON.parse(JSON.stringify()) 16.0 Ops/sec
recursiveDeepCopy 110.3 Ops/sec
fastest-json-copy npm package 103.3 Ops/sec
rfdc 61.6 Ops/sec
structuredClone 38.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • rfdc

  • structuredClone


;