Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Lodash clone 3754503.5 Ops/sec
Lodash cloneDeep 380354.8 Ops/sec
Lodash merge 276070.0 Ops/sec
ES6 spread 9395326.0 Ops/sec
ES6 Object.assign 7184210.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign


;