Run details:
Mozilla/5.0 (Linux; Android 10; SM-G965U1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
querySelector 1413160.6 Ops/sec
querySelectorAll 757882.4 Ops/sec
getElementsByClassName 1810274.1 Ops/sec
querySelector (ID) 1145486.0 Ops/sec
getElementsByID 1961886.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;