Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Windows
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 778244.7 Ops/sec
Json clone 447286.1 Ops/sec
Ramda clone 1182751.9 Ops/sec
hand rolled 618820.7 Ops/sec
spread 5735630.0 Ops/sec
obj.assign 2817348.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign


;