Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
querySelector 3685438.0 Ops/sec
querySelectorAll 1426923.0 Ops/sec
getElementsByClassName 6204392.0 Ops/sec
querySelector (ID) 3692654.8 Ops/sec
getElementsByID 6745491.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;