Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Windows
Desktop
14 days ago
Test name Executions per second
querySelector 2730083.0 Ops/sec
querySelectorAll 1521452.5 Ops/sec
getElementsByClassName 5386322.5 Ops/sec
querySelector (ID) 3497448.0 Ops/sec
getElementsByID 6417429.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;