Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.from(NodeList).map
    [...NodeList].map
    map.call(NodeList)
    NodeList#map
    for loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
for loop
1.2M/s
NodeList#map
1.1M/s
map.call(NodeList)
1.1M/s
[...NodeList].map
1.0M/s
Array.from(NodeList).map
932K/s
View exact numbers
Test name Executions per second
for loop 1,154,182 Ops/sec
NodeList#map 1,129,124 Ops/sec
map.call(NodeList) 1,084,818 Ops/sec
[...NodeList].map 1,048,341 Ops/sec
Array.from(NodeList).map 931,746 Ops/sec