Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Lodash clone 2142003.8 Ops/sec
Lodash cloneDeep 190577.5 Ops/sec
Lodash merge 169047.9 Ops/sec
ES6 spread 9789141.0 Ops/sec
ES6 Object.assign 13534669.0 Ops/sec
Stringify 499326.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • Stringify