Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Mac OS X 11.1.0
Desktop
3 years ago
Test name Executions per second
Array.from 1383191.1 Ops/sec
Spread 1790810.6 Ops/sec
Array.from on NodeList 21687.4 Ops/sec
Spread on NodeList 26346.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.from

  • Spread

  • Array.from on NodeList

  • Spread on NodeList