Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Mac OS X 10.15
Desktop
23 days ago
Test name Executions per second
lodash cloneDeep 13.6 Ops/sec
JSON.parse(JSON.stringify()) 17.2 Ops/sec
recursiveDeepCopy 91.3 Ops/sec
fastest-json-copy npm package 67.3 Ops/sec
rfdc 64.3 Ops/sec
structuredClone 41.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • rfdc

  • structuredClone