Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Linux
Desktop
4 years ago
Test name Executions per second
getElementById 3314991.5 Ops/sec
getElementsByTagName 1914418.8 Ops/sec
querySelector 1953827.1 Ops/sec
getElementsByClassName 1456944.0 Ops/sec
getElementsByName 2249059.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;