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 3228600.8 Ops/sec
Lodash cloneDeep 290059.8 Ops/sec
Lodash merge 289295.0 Ops/sec
ES6 spread 13320052.0 Ops/sec
ES6 Object.assign 23985234.0 Ops/sec
JSON.parse(JSON.stringify()) 885023.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())


;