Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Ubuntu
Desktop
one year ago
Test name Executions per second
querySelector 4302244.0 Ops/sec
querySelectorAll 2295330.5 Ops/sec
getElementsByClassName 11467214.0 Ops/sec
querySelector (ID) 4624855.5 Ops/sec
getElementsByID 11644287.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;