HTML Preparation code:
Tests:
  • getElementById

  • querySelector("#id")

  • getElementsByClassName("class")[0]

  • querySelector(".class")

  • getElementById + getElementsByTagName

  • querySelectorAll("#id tag")

  • getElementById + getElementsByClassName[0]

  • querySelector("#id .class")

  • getElementsByClassName("class")

  • querySelectorAll(".class")

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    querySelector("#id")
    getElementsByClassName("class")[0]
    querySelector(".class")
    getElementById + getElementsByTagName
    querySelectorAll("#id tag")
    getElementById + getElementsByClassName[0]
    querySelector("#id .class")
    getElementsByClassName("class")
    querySelectorAll(".class")

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!