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

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementById unique

  • querySelector (unique id)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    getElementsByTagName
    querySelector
    getElementsByClassName
    getElementById unique
    querySelector (unique id)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Linux; Android 11; SM-A505FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.66 Mobile Safari/537.36
Chrome Mobile 90 on Android
View result in a separate tab
Test name Executions per second
getElementById 1490662.5 Ops/sec
getElementsByTagName 825837.4 Ops/sec
querySelector 749238.2 Ops/sec
getElementsByClassName 872561.6 Ops/sec
getElementById unique 1260868.4 Ops/sec
querySelector (unique id) 690684.2 Ops/sec