Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
Lodash cloneDeep 61157.6 Ops/sec
Json clone 218606.3 Ops/sec
Ramda clone 62354.6 Ops/sec
hand rolled 52694.3 Ops/sec
spread 859652.9 Ops/sec
obj.assign 840462.4 Ops/sec
og hand rolled (still recursive) 119976.6 Ops/sec
manual stack 202626.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • og hand rolled (still recursive)

  • manual stack


;