Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Ubuntu
Desktop
3 years ago
Test name Executions per second
getElementById 4646172.0 Ops/sec
querySelector 3148892.8 Ops/sec
querySelector for some other attribute 1719002.4 Ops/sec
querySelectorAll for some other attribute 842650.2 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • querySelector for some other attribute

  • querySelectorAll for some other attribute


;