Run details:
Mozilla/5.0 (Linux; Android 7.0; Redmi Note 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Mobile Safari/537.36
Chrome Mobile 80
Android 7.0
Mobile
4 years ago
Test name Executions per second
getElementById 665691.7 Ops/sec
getElementsByTagName 260102.0 Ops/sec
querySelector 286043.9 Ops/sec
getElementsByClassName 252723.0 Ops/sec
getElementsByName 261424.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName