Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36
Chrome 98
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Lodash cloneDeep 1760900.1 Ops/sec
Lodash clone 7865186.5 Ops/sec
Array.splice() 11390228.0 Ops/sec
Object.assign() 8624743.0 Ops/sec
Array,slice() 24762980.0 Ops/sec
Array.slice(0) 24748952.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Lodash clone

  • Array.splice()

  • Object.assign()

  • Array,slice()

  • Array.slice(0)