Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Ubuntu
Desktop
2 years ago
Test name Executions per second
querySelector 3513801.8 Ops/sec
querySelectorAll 1389845.4 Ops/sec
getElementsByClassName 7516055.5 Ops/sec
querySelector (ID) 3504186.5 Ops/sec
getElementsByID 7509522.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;