Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
Lodash clone 1436456.2 Ops/sec
Lodash cloneDeep 235764.4 Ops/sec
Lodash merge 147443.3 Ops/sec
ES6 spread 12428702.0 Ops/sec
ES6 Object.assign 3618760.8 Ops/sec
ES6 structuredClone 198469.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • ES6 structuredClone