Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
Chrome 79
Linux
Desktop
4 years ago
Test name Executions per second
Lodash clone 1012929.8 Ops/sec
Lodash cloneDeep 139049.4 Ops/sec
Lodash merge 89523.1 Ops/sec
ES6 spread 10801710.0 Ops/sec
ES6 Object.assign 3226088.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign