Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Ubuntu
Desktop
3 years ago
Test name Executions per second
querySelector 3030016.8 Ops/sec
querySelectorAll 1314124.1 Ops/sec
getElementsByClassName 5576694.0 Ops/sec
querySelector (ID) 2969833.2 Ops/sec
getElementsByID 5510150.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;