Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 556862.2 Ops/sec
Json clone 317930.8 Ops/sec
Ramda clone 820296.9 Ops/sec
hand rolled 468124.2 Ops/sec
spread 4877688.5 Ops/sec
obj.assign 2155965.0 Ops/sec
og hand rolled (still recursive) 709662.1 Ops/sec
manual stack 826683.0 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


;