Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Lodash clone 818217.2 Ops/sec
Lodash cloneDeep 131246.9 Ops/sec
Lodash merge 85509.5 Ops/sec
ES6 spread 6954939.0 Ops/sec
ES6 Object.assign 2100301.8 Ops/sec
JSON.parse(JSON.stringify()) 218380.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash clone

  • Lodash cloneDeep

  • Lodash merge

  • ES6 spread

  • ES6 Object.assign

  • JSON.parse(JSON.stringify())


;