Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Linux
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 568684.7 Ops/sec
Json clone 316449.8 Ops/sec
Ramda clone 642613.6 Ops/sec
hand rolled 820870.8 Ops/sec
spread 5030424.5 Ops/sec
obj.assign 4738972.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;