Run details:
Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android 8.0.0
Mobile
5 years ago
Test name Executions per second
getElementById 2127109.0 Ops/sec
getElementsByTagName 467954.6 Ops/sec
querySelector 537318.3 Ops/sec
getElementsByClassName 480772.6 Ops/sec
getElementsByName 512761.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;