Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Chrome OS 14541.0.0
Desktop
7 months ago
Test name Executions per second
querySelector 6748470.5 Ops/sec
querySelectorAll 2796020.2 Ops/sec
getElementsByClassName 7975518.0 Ops/sec
querySelector (ID) 5209526.5 Ops/sec
getElementsByID 7695362.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;