Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Ubuntu
Desktop
28 days ago
Test name Executions per second
querySelectorAll 32685.0 Ops/sec
querySelector + querySelectorAll 54223.9 Ops/sec
querySelectorAll again (in case of caching) 34063.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelectorAll

  • querySelector + querySelectorAll

  • querySelectorAll again (in case of caching)