Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 871915.7 Ops/sec
Json clone 656257.0 Ops/sec
Ramda clone 1365004.6 Ops/sec
hand rolled 796986.0 Ops/sec
spread 8569201.0 Ops/sec
obj.assign 3965943.8 Ops/sec
structuredClone 339913.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • structuredClone


;