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 3877709.0 Ops/sec
Lodash cloneDeep 316083.8 Ops/sec
Lodash merge 318077.2 Ops/sec
ES6 spread 14230943.0 Ops/sec
ES6 Object.assign 26730634.0 Ops/sec
JSON.parse(JSON.stringify()) 942283.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • JSON.parse(JSON.stringify())


;