Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Linux
Desktop
5 years ago
Test name Executions per second
Lodash cloneDeep 34038.3 Ops/sec
Lodash clone 167721.2 Ops/sec
new Object 2854653.8 Ops/sec
Custom deep spread 299760.9 Ops/sec
Object assign 248078.1 Ops/sec
Custom deep assign 95661.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Lodash clone

  • new Object

  • Custom deep spread

  • Object assign

  • Custom deep assign


;