Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
9 days ago
Test name Executions per second
getElementById 5259570.5 Ops/sec
querySelector 2710102.8 Ops/sec
getElementsByClassName 3972275.8 Ops/sec
querySelectorAll 2226445.0 Ops/sec
querySelector class 4140120.8 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementsByClassName

  • querySelectorAll

  • querySelector class


;