Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Mac OS X 10.14.4
Desktop
3 years ago
Test name Executions per second
Lodash clone 2310988.0 Ops/sec
Lodash cloneDeep 440423.4 Ops/sec
Lodash merge 245423.4 Ops/sec
Lodash assign 2036451.2 Ops/sec
ES6 spread 12194397.0 Ops/sec
ES6 Object assign 3307903.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • Lodash assign

  • ES6 spread

  • ES6 Object assign