Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Linux
Desktop
7 months ago
Test name Executions per second
querySelector 9805404.0 Ops/sec
querySelectorAll 3891282.0 Ops/sec
getElementsByClassName 11762430.0 Ops/sec
querySelector (ID) 7560000.0 Ops/sec
getElementsByID 11660197.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;