Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
querySelector 3110090.0 Ops/sec
querySelectorAll 1373928.1 Ops/sec
getElementsByClassName 5131337.0 Ops/sec
querySelector (ID) 2966608.5 Ops/sec
getElementsByID 5345907.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;