Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Chrome 79
Linux
Desktop
4 years ago
Test name Executions per second
Lodash clone 881538.9 Ops/sec
Lodash cloneDeep 125196.4 Ops/sec
Lodash merge 81883.2 Ops/sec
ES6 spread 9761921.0 Ops/sec
ES6 Object.assign 2921746.2 Ops/sec
JSON.parse(JSON.stringify()) 260776.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • JSON.parse(JSON.stringify())


;