Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
one month ago
Test name Executions per second
Lodash cloneDeep 885176.0 Ops/sec
Json clone 828992.1 Ops/sec
Ramda clone 1790030.6 Ops/sec
hand rolled 1008504.7 Ops/sec
spread 8941401.0 Ops/sec
obj.assign 1351527.9 Ops/sec
og hand rolled (still recursive) 1500549.4 Ops/sec
manual stack 1830844.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


;