Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Windows
Desktop
24 days ago
Test name Executions per second
querySelector 5540243.0 Ops/sec
querySelectorAll 2817133.5 Ops/sec
getElementsByClassName 11869268.0 Ops/sec
querySelector (ID) 5483740.0 Ops/sec
getElementsByID 11869221.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;