Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
16 days ago
Test name Executions per second
querySelector 5021493.0 Ops/sec
querySelectorAll 2846663.8 Ops/sec
getElementsByClassName 6345295.0 Ops/sec
querySelector (ID) 3721731.8 Ops/sec
getElementsByID 5570683.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;