Run details:
Mozilla/5.0 (Linux; Android 10; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
getElementById 1613229.4 Ops/sec
getElementsByTagName 567072.4 Ops/sec
querySelector 752332.6 Ops/sec
getElementsByClassName 528823.5 Ops/sec
getElementsByName 747200.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;