HTML Preparation code:
AخA
 
1
<div id='1'></div>
2
<div id='2'></div>
3
<div id='3'></div>
4
<div id='4'></div>
5
<div id='5'></div>
6
<div id='6'></div>
7
<div id='7'></div>
8
<div id='8'></div>
9
<div id='9'></div>
10
<div id='10'></div>
Script Preparation code:
 
var divs = document.querySelectorAll('div');
Tests:
  • array.from.map

     
    Array.from(divs).map(div => div.id);
  • array.from with map

     
    Array.from(divs, (div) => div.id)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array.from.map
    array.from with map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36
Chrome Mobile 124 on Android
View result in a separate tab
Test name Executions per second
array.from.map 324814.5 Ops/sec
array.from with map 293268.1 Ops/sec