Run details:
Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G935F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/8.2 Chrome/63.0.3239.111 Mobile Safari/537.36
Chrome Mobile 63
Android 7.0
Mobile
5 years ago
Test name Executions per second
getElementById 1321328.6 Ops/sec
getElementsByTagName 297510.8 Ops/sec
querySelector 537761.0 Ops/sec
getElementsByClassName 385514.8 Ops/sec
getElementsByName 546730.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;