Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Chrome 81
Windows
Desktop
4 years ago
Test name Executions per second
Lodash cloneDeep 337022.2 Ops/sec
Json clone 209397.6 Ops/sec
Ramda clone 493514.0 Ops/sec
hand rolled 298128.9 Ops/sec
spread 2812035.5 Ops/sec
obj.assign 1344457.4 Ops/sec
og hand rolled (still recursive) 447662.2 Ops/sec
manual stack 484618.0 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


;