Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
11 months ago
Test name Executions per second
querySelector 4255824.0 Ops/sec
querySelectorAll 1866607.4 Ops/sec
getElementsByClassName 5471932.5 Ops/sec
querySelector (ID) 2728110.8 Ops/sec
getElementsByID 5052002.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;