Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
ES6 Object.assign 3254750.5 Ops/sec
ES6 Spread 6017791.5 Ops/sec
Lodash clone 2313618.8 Ops/sec
Lodash cloneDeep 1397121.0 Ops/sec
Lodash merge 3988719.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ES6 Object.assign

  • ES6 Spread

  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge