Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
lodash.cloneDeep 24507.8 Ops/sec
cleanJson [modified to clone] (Recursive) 54459.0 Ops/sec
customDeepClone (Recursive) 105940.0 Ops/sec
cloneJson (Loop) 65110.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.cloneDeep

  • cleanJson [modified to clone] (Recursive)

  • customDeepClone (Recursive)

  • cloneJson (Loop)