Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Linux
Desktop
2 years ago
Test name Executions per second
querySelector 3865949.8 Ops/sec
querySelectorAll 1702510.1 Ops/sec
getElementsByClassName 6678028.0 Ops/sec
querySelector (ID) 3803926.2 Ops/sec
getElementsByID 6517189.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;