HTML Preparation code:
AخA
 
1
<div class="test"></div>
2
<div class="test"></div>
3
<div class="test"></div>
4
<div class="test"></div>
5
<div class="test"></div>
6
<div class="test"></div>
7
<div class="test"></div>
8
<div class="test"></div>
9
<div class="test"></div>
10
<div class="test"></div>
Tests:
  • querySelectorAll

     
    document.querySelectorAll(".test")
  • getElementsByClassName

     
    document.getElementsByClassName(".test")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    querySelectorAll
    getElementsByClassName

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Chrome 79 on Mac OS X 10.14.4
View result in a separate tab
Test name Executions per second
querySelectorAll 1016983.8 Ops/sec
getElementsByClassName 4900264.5 Ops/sec