Run details:
Mozilla/5.0 (Linux; Android 7.1.1; C106) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36
Chrome Mobile 71
Android 7.1.1
Mobile
6 years ago
Test name Executions per second
getElementById 800906.1 Ops/sec
getElementsByTagName 266039.7 Ops/sec
querySelector 269957.0 Ops/sec
getElementsByClassName 269071.6 Ops/sec
getElementsByName 275955.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName