Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81
Windows
Desktop
4 years ago
Test name Executions per second
Lodash cloneDeep 167134.0 Ops/sec
Json clone 91488.6 Ops/sec
Ramda clone 284339.0 Ops/sec
hand rolled 177561.7 Ops/sec
spread 1572441.2 Ops/sec
obj.assign 715154.3 Ops/sec
og hand rolled (still recursive) 174099.9 Ops/sec
manual stack 203807.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


;