Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Ubuntu
Desktop
one year ago
Test name Executions per second
querySelector 3580464.0 Ops/sec
querySelectorAll 1600149.8 Ops/sec
getElementsByClassName 7700539.5 Ops/sec
querySelector (ID) 3588974.0 Ops/sec
getElementsByID 7684121.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;