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 345629.7 Ops/sec
querySelectorAll 207066.2 Ops/sec
getElementsByClassName 640983.6 Ops/sec
querySelector (ID) 317228.2 Ops/sec
getElementsByID 700230.1 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;