Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
8 months ago
Test name Executions per second
spread ... 29016774.0 Ops/sec
slice() 31537688.0 Ops/sec
splice(0) 19874806.0 Ops/sec
concat() 25363336.0 Ops/sec
JSON.parse(JSON.stringify()) 1580902.5 Ops/sec
Custom function 1149555.6 Ops/sec
Lodash.cloneDeep() 976249.1 Ops/sec
jQuery.extend(true) 939758.2 Ops/sec
HTML Preparation code:
Tests:
  • spread ...

  • slice()

  • splice(0)

  • concat()

  • JSON.parse(JSON.stringify())

  • Custom function

  • Lodash.cloneDeep()

  • jQuery.extend(true)