Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Lodash cloneDeep 1419755.9 Ops/sec
Json clone 705934.7 Ops/sec
Ramda clone 2067797.9 Ops/sec
hand rolled 1073951.4 Ops/sec
spread 10508544.0 Ops/sec
obj.assign 5001988.5 Ops/sec
og hand rolled (still recursive) 1639830.9 Ops/sec
manual stack 1893431.4 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


;