Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 915603.1 Ops/sec
Lodash clone 13219171.0 Ops/sec
Array.slice() 24162050.0 Ops/sec
Array.slice(0) 24258926.0 Ops/sec
Object.assign() 3324318.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Lodash clone

  • Array.slice()

  • Array.slice(0)

  • Object.assign()


;