Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Linux
Desktop
one year ago
Test name Executions per second
getElementById 19136308.0 Ops/sec
getElementsByTagName 13299336.0 Ops/sec
querySelector 18092730.0 Ops/sec
getElementsByClassName 11600930.0 Ops/sec
getElementsByName 16010634.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName