Run details:
Mozilla/5.0 (Linux; Android 9; Redmi Note 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36
Chrome Mobile 93
Android
Mobile
one year ago
Test name Executions per second
querySelector 785333.9 Ops/sec
querySelectorAll 406256.0 Ops/sec
getElementsByClassName 1036024.6 Ops/sec
querySelector (ID) 642407.2 Ops/sec
getElementsByID 1110972.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;