Run details:
Mozilla/5.0 (Linux; Android 10; EML-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.127 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
getElementById 1218454.6 Ops/sec
getElementsByTagName 500560.9 Ops/sec
querySelector 640735.3 Ops/sec
getElementsByClassName 554643.2 Ops/sec
getElementsByName 594810.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName