Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Chrome 72
Windows 7
Desktop
5 years ago
Test name Executions per second
Array.from 1665239.0 Ops/sec
Spread 2656019.2 Ops/sec
Array.from on NodeList 16476.3 Ops/sec
Spread on NodeList 27641.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.from

  • Spread

  • Array.from on NodeList

  • Spread on NodeList