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 32124.5 Ops/sec
Lodash clone 168804.8 Ops/sec
new Object 2824712.0 Ops/sec
Custom deep spread 315304.2 Ops/sec
Object assign 219452.5 Ops/sec
Custom deep assign 93294.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Lodash clone

  • new Object

  • Custom deep spread

  • Object assign

  • Custom deep assign


;