Run details:
Mozilla/5.0 (Linux; Android 13; SM-S908U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
querySelector 2325150.2 Ops/sec
querySelectorAll 1114523.9 Ops/sec
getElementsByClassName 2842086.0 Ops/sec
querySelector (ID) 1694241.4 Ops/sec
getElementsByID 2888116.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;