Run details:
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
getElementById 2712518.5 Ops/sec
getElementsByTagName 1773523.5 Ops/sec
querySelector 1870770.6 Ops/sec
getElementsByClassName 1707805.6 Ops/sec
getElementsByName 2118790.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName