HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementsByClassName

  • querySelectorAll

  • querySelector class

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    querySelector
    getElementsByClassName
    querySelectorAll
    querySelector class

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122 on Windows
View result in a separate tab
Test name Executions per second
getElementById 7691434.0 Ops/sec
querySelector 4139755.0 Ops/sec
getElementsByClassName 3872343.8 Ops/sec
querySelectorAll 1773960.2 Ops/sec
querySelector class 3722568.0 Ops/sec


;