Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Chrome 92
Windows 7
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 487264.6 Ops/sec
Json clone 312995.0 Ops/sec
Ramda clone 747123.1 Ops/sec
hand rolled 335770.3 Ops/sec
spread 3942393.5 Ops/sec
obj.assign 1775532.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;