Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 794927.3 Ops/sec
Json clone 455747.1 Ops/sec
Ramda clone 1236838.2 Ops/sec
hand rolled 641035.6 Ops/sec
spread 6289322.0 Ops/sec
obj.assign 2940218.5 Ops/sec
Structured Clone 272466.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • Structured Clone


;