Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Windows
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 755512.2 Ops/sec
Json clone 476604.6 Ops/sec
Ramda clone 1252543.8 Ops/sec
hand rolled 421613.5 Ops/sec
spread 4373276.5 Ops/sec
obj.assign 1657805.4 Ops/sec
og hand rolled (still recursive) 420782.3 Ops/sec
manual stack 703455.9 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


;