Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Chrome OS 14541.0.0
Desktop
8 months ago
Test name Executions per second
querySelector 7209078.5 Ops/sec
querySelectorAll 3177313.0 Ops/sec
getElementsByClassName 9355208.0 Ops/sec
querySelector (ID) 6114498.5 Ops/sec
getElementsByID 8804250.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;