Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Windows
Desktop
4 years ago
Test name Executions per second
querySelector 4103696.2 Ops/sec
querySelectorAll 1912146.0 Ops/sec
getElementsByClassName 7026784.5 Ops/sec
querySelector (ID) 4188986.5 Ops/sec
getElementsByID 6739440.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;