Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146
Linux
Desktop
4 months ago
Test name Executions per second
querySelectorAll 55309.8 Ops/sec
querySelector + querySelectorAll 110200.1 Ops/sec
querySelectorAll again (in case of caching) 60130.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelectorAll

  • querySelector + querySelectorAll

  • querySelectorAll again (in case of caching)