Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Ubuntu
Desktop
one year ago
Test name Executions per second
Array.from(NodeList).map 2200473.0 Ops/sec
[...NodeList].map 2392016.5 Ops/sec
map.call(NodeList) 2494776.0 Ops/sec
NodeList#map 2530441.5 Ops/sec
for loop 2593332.5 Ops/sec
Script Preparation code:
Tests:
  • Array.from(NodeList).map

  • [...NodeList].map

  • map.call(NodeList)

  • NodeList#map

  • for loop