Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Ubuntu
Desktop
3 years ago
Test name Executions per second
getElementById 5783506.0 Ops/sec
getElementsByTagName 4662521.5 Ops/sec
querySelector 6339330.0 Ops/sec
getElementsByClassName 4378024.0 Ops/sec
getElementsByName 6593016.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName