Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36 OPR/60.0.3255.170
Opera 60
Linux
Desktop
5 years ago
Test name Executions per second
querySelector 1925198.9 Ops/sec
querySelectorAll 560745.7 Ops/sec
getElementsByClassName 2106540.2 Ops/sec
querySelector (ID) 1283751.5 Ops/sec
getElementsByID 2307366.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;