Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87
Mac OS X 11.0.0
Desktop
3 years ago
Test name Executions per second
Array.prototype.slice on NodeList 6853316.5 Ops/sec
Array.prototype.concat on NodeList 6751297.5 Ops/sec
Array.from on NodeList 80899.6 Ops/sec
Spread on NodeList 79751.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.slice on NodeList

  • Array.prototype.concat on NodeList

  • Array.from on NodeList

  • Spread on NodeList