Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Linux
Desktop
4 years ago
Test name Executions per second
getElementById 9341572.0 Ops/sec
getElementsByTagName 4544137.0 Ops/sec
querySelector 4881990.0 Ops/sec
getElementsByClassName 4387286.5 Ops/sec
getElementsByName 5458170.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName