Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
9 months ago
Test name Executions per second
Lodash cloneDeep 1289297.6 Ops/sec
Json clone 933552.2 Ops/sec
Ramda clone 2012740.6 Ops/sec
hand rolled 1073166.8 Ops/sec
spread 11292098.0 Ops/sec
obj.assign 5358399.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;