Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Linux
Desktop
one year ago
Test name Executions per second
querySelector 2464330.0 Ops/sec
querySelectorAll 793339.8 Ops/sec
getElementsByClassName 4581952.5 Ops/sec
querySelector (ID) 2267995.2 Ops/sec
getElementsByID 4584979.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;