Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Ubuntu
Desktop
6 months ago
Test name Executions per second
getElementById 17194434.0 Ops/sec
getElementsByTagName 12178009.0 Ops/sec
querySelector 12762922.0 Ops/sec
getElementsByClassName 9832049.0 Ops/sec
getElementsByName 13679961.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;