Run details:
Mozilla/5.0 (Linux; Android 10; SM-A307FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
getElementById 1222264.9 Ops/sec
getElementsByTagName 524704.9 Ops/sec
querySelector 724548.6 Ops/sec
getElementsByClassName 624948.3 Ops/sec
getElementsByName 692911.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName