HTML Preparation code:
Tests:
  • getElementById

  • querySelector (id)

  • getElementsByClassName

  • querySelector (class)

  • getElementsByTagName

  • querySelector (tag)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Android 11; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122 on Android
View result in a separate tab
Test name Executions per second
getElementById 4264977.0 Ops/sec
querySelector (id) 1265958.5 Ops/sec
getElementsByClassName 4380357.0 Ops/sec
querySelector (class) 1210883.8 Ops/sec
getElementsByTagName 4360594.0 Ops/sec
querySelector (tag) 1278573.2 Ops/sec