Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Waterfox/91.10.0
Firefox 91
Windows
Desktop
2 years ago
Test name Executions per second
querySelector 2114829.5 Ops/sec
querySelectorAll 983452.5 Ops/sec
getElementsByClassName 4542808.0 Ops/sec
querySelector (ID) 2302069.2 Ops/sec
getElementsByID 3947625.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;