Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Linux
Desktop
8 months ago
Test name Executions per second
querySelector 4713768.5 Ops/sec
querySelectorAll 2320035.2 Ops/sec
getElementsByClassName 8854509.0 Ops/sec
querySelector (ID) 4692024.5 Ops/sec
getElementsByID 8861140.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;