Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 417610.7 Ops/sec
Json clone 255424.4 Ops/sec
Ramda clone 515742.2 Ops/sec
hand rolled 266119.2 Ops/sec
spread 3307595.2 Ops/sec
obj.assign 1479180.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;