Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Linux
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 567376.4 Ops/sec
Json clone 395608.3 Ops/sec
Ramda clone 889280.9 Ops/sec
hand rolled 548546.4 Ops/sec
spread 5949269.5 Ops/sec
obj.assign 2606511.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;