HTML Preparation code:
AخA
 
1
<html>
2
  <body>
3
    <div id="test2"></div>
4
    <div id="test"></div>
5
  </body>
6
</html>
Tests:
  • querySelector

     
    document.querySelector("#test");
  • getElementById

     
    document.getElementById("test");
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    querySelector
    getElementById

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 16 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Whale/4.30.291.11 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
querySelector 6286954.0 Ops/sec
getElementById 14192413.0 Ops/sec