Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:100.0) Gecko/20100101 Firefox/100.0
Firefox 100
Mac OS X 10.13
Desktop
2 years ago
Test name Executions per second
querySelector 2498758.2 Ops/sec
querySelectorAll 822818.8 Ops/sec
getElementsByClassName 4704861.5 Ops/sec
querySelector (ID) 2396680.8 Ops/sec
getElementsByID 4810032.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;