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 105665.1 Ops/sec
Json clone 286826.1 Ops/sec
Ramda clone 101124.3 Ops/sec
hand rolled 64205.4 Ops/sec
spread 1063587.0 Ops/sec
obj.assign 954323.3 Ops/sec
og hand rolled (still recursive) 126279.5 Ops/sec
manual stack 208092.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


;