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: 18 hours ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
getElementById 5259570.5 Ops/sec
querySelector 2710102.8 Ops/sec
getElementsByClassName 3972275.8 Ops/sec
querySelectorAll 2226445.0 Ops/sec
querySelector class 4140120.8 Ops/sec


;