Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 OPR/101.0.0.0
Opera 101
Windows
Desktop
one year ago
Test name Executions per second
querySelector 2408402.2 Ops/sec
querySelectorAll 1359816.4 Ops/sec
getElementsByClassName 3429950.2 Ops/sec
querySelector (ID) 1817157.1 Ops/sec
getElementsByID 3817292.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;