Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
getElementById 8747411.0 Ops/sec
getElementsByTagName 4606463.0 Ops/sec
querySelector 5184839.0 Ops/sec
getElementsByClassName 4366163.5 Ops/sec
getElementsByName 5513589.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName