HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementById and getElementsByClassName

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    querySelector
    getElementById and getElementsByClassName

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 14 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36
Chrome 78 on Linux
View result in a separate tab
Test name Executions per second
getElementById 5273264.0 Ops/sec
querySelector 2112719.0 Ops/sec
getElementById and getElementsByClassName 2036594.0 Ops/sec