Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Mac OS X 10.15.7
Desktop
4 days ago
Test name Executions per second
getElementById 7405373.5 Ops/sec
querySelector 4106376.2 Ops/sec
getElementsByClassName 5757849.0 Ops/sec
querySelectorAll 2898900.5 Ops/sec
querySelector class 5505970.0 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementsByClassName

  • querySelectorAll

  • querySelector class


;