Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Windows
Desktop
one year ago
Test name Executions per second
querySelector 3685975.5 Ops/sec
querySelectorAll 1619292.2 Ops/sec
getElementsByClassName 6713220.0 Ops/sec
querySelector (ID) 3552911.8 Ops/sec
getElementsByID 5608312.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;