Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
5 months ago
Test name Executions per second
getElementById 8071443.0 Ops/sec
getElementsByTagName 5298913.0 Ops/sec
querySelector 5225318.0 Ops/sec
getElementsByClassName 4491841.5 Ops/sec
getElementsByName 7014700.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName