Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93
Windows
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 379923.5 Ops/sec
Json clone 246822.5 Ops/sec
Ramda clone 597206.2 Ops/sec
hand rolled 384766.6 Ops/sec
spread 3035332.8 Ops/sec
obj.assign 1399051.1 Ops/sec
og hand rolled (still recursive) 712900.1 Ops/sec
manual stack 887470.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


;