Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.0.3
Mobile
5 months ago
Test name Executions per second
Lodash clone 1829310.2 Ops/sec
Lodash cloneDeep 202039.0 Ops/sec
Lodash merge 141954.2 Ops/sec
ES6 spread 4200969.5 Ops/sec
ES6 Object.assign 3007235.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign