Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-N975W) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/18.0 Chrome/99.0.4844.88 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
querySelector 1981278.8 Ops/sec
querySelectorAll 948333.0 Ops/sec
getElementsByClassName 2830379.8 Ops/sec
querySelector (ID) 1269483.6 Ops/sec
getElementsByID 1867896.6 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;