Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Ubuntu
Desktop
3 years ago
Test name Executions per second
querySelector 2763056.2 Ops/sec
querySelectorAll 1291705.2 Ops/sec
getElementsByClassName 5029556.0 Ops/sec
querySelector (ID) 2808631.2 Ops/sec
getElementsByID 4945148.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;