Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Mobile Safari/537.36
Chrome Mobile 118
Android
Mobile
one year ago
Test name Executions per second
Lodash cloneDeep 744674.3 Ops/sec
Json clone 561139.8 Ops/sec
Ramda clone 1095491.5 Ops/sec
hand rolled 584632.7 Ops/sec
spread 5598092.5 Ops/sec
obj.assign 2123727.5 Ops/sec
og hand rolled (still recursive) 689923.7 Ops/sec
manual stack 839808.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

  • Ramda clone

  • hand rolled

  • spread

  • obj.assign

  • og hand rolled (still recursive)

  • manual stack


;