Run details:
Mozilla/5.0 (Linux; Android 12; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
querySelector 1449745.5 Ops/sec
querySelectorAll 978775.7 Ops/sec
getElementsByClassName 2326954.5 Ops/sec
querySelector (ID) 1191435.8 Ops/sec
getElementsByID 2143939.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;