Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Ubuntu
Desktop
2 years ago
Test name Executions per second
querySelector 2620953.0 Ops/sec
querySelectorAll 1167853.2 Ops/sec
getElementsByClassName 5246942.0 Ops/sec
querySelector (ID) 2634265.0 Ops/sec
getElementsByID 5213343.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;