Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Firefox 70
Windows
Desktop
5 years ago
Test name Executions per second
querySelector 3505371.0 Ops/sec
querySelectorAll 1340878.4 Ops/sec
getElementsByClassName 5564077.5 Ops/sec
querySelector (ID) 3503933.8 Ops/sec
getElementsByID 5575978.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;