Run details:
Mozilla/5.0 (Linux; Android 10; SM-G780F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.66 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
getElementById 2002855.4 Ops/sec
getElementsByTagName 1088838.1 Ops/sec
querySelector 1229943.4 Ops/sec
getElementsByClassName 1111532.4 Ops/sec
getElementsByName 1241104.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;