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 23772.2 Ops/sec
cleanJson [modified to clone] (Recursive) 63900.9 Ops/sec
customDeepClone (Recursive) 109156.3 Ops/sec
cloneJson (Loop) 73604.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.cloneDeep

  • cleanJson [modified to clone] (Recursive)

  • customDeepClone (Recursive)

  • cloneJson (Loop)