HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • querySelector for some other attribute

  • querySelectorAll for some other attribute

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getElementById
    querySelector
    querySelector for some other attribute
    querySelectorAll for some other attribute

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91 on Ubuntu
View result in a separate tab
Test name Executions per second
getElementById 4646172.0 Ops/sec
querySelector 3148892.8 Ops/sec
querySelector for some other attribute 1719002.4 Ops/sec
querySelectorAll for some other attribute 842650.2 Ops/sec


;