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 805422.7 Ops/sec
Json clone 540810.1 Ops/sec
Ramda clone 1388896.0 Ops/sec
hand rolled 671052.8 Ops/sec
spread 7413783.0 Ops/sec
obj.assign 3354716.0 Ops/sec
og hand rolled (still recursive) 946765.2 Ops/sec
manual stack 1085050.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


;