HTML Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    querySelector(ID)
    querySelectorAll(ID)
    exposed global object
    exposed under the window object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
getElementById
5.7M/s
querySelector(ID)
4.1M/s
exposed under the window object
2.2M/s
exposed global object
1.8M/s
querySelectorAll(ID)
1.8M/s
View exact numbers
Test name Executions per second
getElementById 5,675,634 Ops/sec
querySelector(ID) 4,146,978 Ops/sec
exposed under the window object 2,249,640 Ops/sec
exposed global object 1,824,971 Ops/sec
querySelectorAll(ID) 1,771,240 Ops/sec