Run details:
Mozilla/5.0 (Linux; Android 7.1.1; E5823) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android 7.1.1
Mobile
4 years ago
Test name Executions per second
querySelector 341475.2 Ops/sec
querySelectorAll 173806.9 Ops/sec
getElementsByClassName 624167.6 Ops/sec
querySelector (ID) 310795.7 Ops/sec
getElementsByID 681120.8 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;