Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Linux
Desktop
25 days ago
Test name Executions per second
querySelectorAll 18178.4 Ops/sec
querySelector + querySelectorAll 38450.6 Ops/sec
querySelectorAll again (in case of caching) 17060.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelectorAll

  • querySelector + querySelectorAll

  • querySelectorAll again (in case of caching)