Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash clone 3874684.0 Ops/sec
Lodash cloneDeep 344407.1 Ops/sec
Lodash merge 321423.2 Ops/sec
ES6 spread 14397510.0 Ops/sec
ES6 Object.assign 26843550.0 Ops/sec
JSON.parse(JSON.stringify()) 1003627.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())


;