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 4.5 Ops/sec
JSON.parse(JSON.stringify()) 14.2 Ops/sec
recursiveDeepCopy 66.5 Ops/sec
fastest-json-copy npm package 47.6 Ops/sec
rfdc 40.2 Ops/sec
structuredClone 29.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • rfdc

  • structuredClone


;