Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.75 Safari/537.36
Chrome 77
Linux
Desktop
5 years ago
Test name Executions per second
getElementById 3748401.0 Ops/sec
getElementsByTagName 1669453.4 Ops/sec
querySelector 1842453.9 Ops/sec
getElementsByClassName 1659855.5 Ops/sec
getElementsByName 1918863.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;