Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
8 months ago
Test name Executions per second
querySelector 5707459.0 Ops/sec
querySelectorAll 2576813.2 Ops/sec
getElementsByClassName 10240296.0 Ops/sec
querySelector (ID) 5395027.5 Ops/sec
getElementsByID 10142327.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;