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
querySelector 3351722.0 Ops/sec
querySelectorAll 1527456.8 Ops/sec
getElementsByClassName 6532215.0 Ops/sec
querySelector (ID) 3447585.0 Ops/sec
getElementsByID 6616472.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;