Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Lodash cloneDeep 423598.9 Ops/sec
Json clone 296642.2 Ops/sec
Ramda clone 653942.3 Ops/sec
hand rolled 391100.6 Ops/sec
spread 3647357.8 Ops/sec
obj.assign 1647298.2 Ops/sec
og hand rolled (still recursive) 575497.4 Ops/sec
manual stack 675943.7 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


;