Script Preparation code:
Tests:
  • getElementById

  • getElementsByClassName

  • getElementsByClassName[0]

  • getElementsByName

  • getElementsByName[0]

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    getElementsByClassName
    getElementsByClassName[0]
    getElementsByName
    getElementsByName[0]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Android 12; Mobile; rv:126.0) Gecko/126.0 Firefox/126.0
Firefox Mobile 126 on Android
View result in a separate tab
Test name Executions per second
getElementById 7667.8 Ops/sec
getElementsByClassName 7478.9 Ops/sec
getElementsByClassName[0] 2672.3 Ops/sec
getElementsByName 7266.0 Ops/sec
getElementsByName[0] 2581.5 Ops/sec


;