Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.9
Desktop
3 years ago
Test name Executions per second
getElementById 3443322.0 Ops/sec
getElementsByTagName 1772934.8 Ops/sec
querySelector 1426748.1 Ops/sec
getElementsByClassName 1257766.5 Ops/sec
getElementsByName 1521678.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName