Run details:
Mozilla/5.0 (Linux; Android 12; SM-A505F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
one year ago
Test name Executions per second
querySelector 883383.3 Ops/sec
querySelectorAll 393156.3 Ops/sec
getElementsByClassName 1070177.1 Ops/sec
querySelector (ID) 722189.2 Ops/sec
getElementsByID 1123352.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;