HTML Preparation code:
Tests:
  • querySelector (className)

  • querySelectorAll (className)

  • getElementsByClassName

  • querySelector (elemID)

  • querySelectorAll (elemID)

  • getElementsByID

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    querySelector (className)
    querySelectorAll (className)
    getElementsByClassName
    querySelector (elemID)
    querySelectorAll (elemID)
    getElementsByID

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
querySelector (className) 2981195.0 Ops/sec
querySelectorAll (className) 1301309.2 Ops/sec
getElementsByClassName 5571702.0 Ops/sec
querySelector (elemID) 2881979.5 Ops/sec
querySelectorAll (elemID) 1094596.8 Ops/sec
getElementsByID 5713953.5 Ops/sec


;