Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A6003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android
Mobile
5 years ago
Test name Executions per second
getElementById 2827714.2 Ops/sec
getElementsByTagName 1082270.1 Ops/sec
querySelector 1182928.5 Ops/sec
getElementsByClassName 1085061.0 Ops/sec
getElementsByName 1152823.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName