Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
Firefox 87
Linux
Desktop
3 years ago
Test name Executions per second
getElementById 7253848.0 Ops/sec
getElementsByTagName 5737185.0 Ops/sec
querySelector 10587772.0 Ops/sec
getElementsByClassName 5404899.0 Ops/sec
getElementsByName 7955580.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName