HTML Preparation code:
Tests:
  • querySelector for existing element

  • getElementsByTagName for existing element

  • querySelector for none existing element

  • getElementsByTagName for none existing element

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    querySelector for existing element
    getElementsByTagName for existing element
    querySelector for none existing element
    getElementsByTagName for none existing element

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Windows
View result in a separate tab
Test name Executions per second
querySelector for existing element 5704192.5 Ops/sec
getElementsByTagName for existing element 11815774.0 Ops/sec
querySelector for none existing element 5739138.0 Ops/sec
getElementsByTagName for none existing element 12158571.0 Ops/sec


;