Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Linux
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 656660.1 Ops/sec
JSON.parse(JSON.stringify()) 376865.1 Ops/sec
recursiveDeepCopy 4213797.0 Ops/sec
fastest-json-copy npm package 3022041.8 Ops/sec
jsondiffpatch.clone() 1936185.2 Ops/sec
rfdc 1864463.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc