Run details:
Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.0.0 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
querySelector 1665829.8 Ops/sec
querySelectorAll 761565.6 Ops/sec
getElementsByClassName 2404329.5 Ops/sec
querySelector (ID) 1293421.1 Ops/sec
getElementsByID 1682820.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;