Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
2 years ago
Test name Executions per second
lodash cloneDeep 354127.9 Ops/sec
JSON.parse(JSON.stringify()) 114707.3 Ops/sec
recursiveDeepCopy 2035809.4 Ops/sec
fastest-json-copy npm package 2620455.8 Ops/sec
jsondiffpatch.clone() 2722074.2 Ops/sec
rfdc 1612954.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