Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Windows
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 1405736.8 Ops/sec
Json clone 947933.8 Ops/sec
Ramda clone 2372851.5 Ops/sec
hand rolled 1171071.2 Ops/sec
spread 13242807.0 Ops/sec
obj.assign 5775097.5 Ops/sec
og hand rolled (still recursive) 1727646.4 Ops/sec
manual stack 2011967.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


;