Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Linux
Desktop
one year ago
Test name Executions per second
querySelector 4059208.0 Ops/sec
querySelectorAll 1327615.8 Ops/sec
getElementsByClassName 7551655.5 Ops/sec
querySelector (ID) 4073838.5 Ops/sec
getElementsByID 7734883.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;