Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Windows
Desktop
8 months ago
Test name Executions per second
querySelector 3278293.0 Ops/sec
querySelectorAll 1307871.6 Ops/sec
getElementsByClassName 6188628.5 Ops/sec
querySelector (ID) 3302290.8 Ops/sec
getElementsByID 6192676.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;