Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
9 months ago
Test name Executions per second
querySelector 7204597.0 Ops/sec
querySelectorAll 2660713.5 Ops/sec
getElementsByClassName 14887548.0 Ops/sec
querySelector (ID) 7265070.5 Ops/sec
getElementsByID 14775045.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;