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: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
getElementById 3573833.5 Ops/sec
querySelector (id) 1314474.8 Ops/sec
getElementsByClassName 3909238.0 Ops/sec
querySelector (class) 1182266.1 Ops/sec
getElementsByTagName 3962080.0 Ops/sec
querySelector (tag) 1263613.8 Ops/sec