Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0
Firefox 87
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash clone 1527635.1 Ops/sec
Lodash cloneDeep 113343.8 Ops/sec
Lodash merge 78399.6 Ops/sec
ES6 spread 5159225.5 Ops/sec
ES6 Object.assign 3249179.8 Ops/sec
JSON.parse(JSON.stringify()) 263912.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • JSON.parse(JSON.stringify())


;