Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Windows
Desktop
4 years ago
Test name Executions per second
Lodash clone 2203313.0 Ops/sec
Lodash cloneDeep 129624.1 Ops/sec
Lodash merge 97732.0 Ops/sec
ES6 spread 5009418.5 Ops/sec
ES6 Object.assign 3350684.2 Ops/sec
JSON.parse(JSON.stringify()) 299795.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • JSON.parse(JSON.stringify())


;