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 4566882.5 Ops/sec
getElementsByTagName 2369381.2 Ops/sec
querySelector 2954945.8 Ops/sec
getElementsByClassName 2637964.0 Ops/sec
getElementsByName 3346126.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;