HTML Preparation code:
Tests:
  • getElementById

  • querySelector(ID)

  • querySelectorAll(ID)

  • exposed global object

  • exposed under the window object

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: 2 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
Test name Executions per second
getElementById 5162161.5 Ops/sec
querySelector(ID) 3586183.0 Ops/sec
querySelectorAll(ID) 1740024.0 Ops/sec
exposed global object 1669355.9 Ops/sec
exposed under the window object 2126107.8 Ops/sec