Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Ubuntu
Desktop
one year ago
Test name Executions per second
querySelector 3610940.5 Ops/sec
querySelectorAll 1510828.1 Ops/sec
getElementsByClassName 6114497.0 Ops/sec
querySelector (ID) 3433390.5 Ops/sec
getElementsByID 6451898.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;