Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Windows 7
Desktop
6 years ago
Test name Executions per second
getElementById 3997741.5 Ops/sec
getElementsByTagName 1830267.5 Ops/sec
querySelector 2047781.9 Ops/sec
getElementsByClassName 1995323.5 Ops/sec
getElementsByName 3072190.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;