Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 ZSBP106
Firefox 60
Windows
Desktop
5 years ago
Test name Executions per second
Lodash cloneDeep 24691.0 Ops/sec
Lodash clone 56701.5 Ops/sec
new Object 56183.1 Ops/sec
Custom deep spread 49393.8 Ops/sec
Object assign 69004.4 Ops/sec
Custom deep assign 59840.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Lodash clone

  • new Object

  • Custom deep spread

  • Object assign

  • Custom deep assign


;