Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36
Chrome Mobile 115
Android
Mobile
one year ago
Test name Executions per second
querySelector 2208320.5 Ops/sec
querySelectorAll 984968.4 Ops/sec
getElementsByClassName 2716120.0 Ops/sec
querySelector (ID) 1540799.8 Ops/sec
getElementsByID 2913309.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;