Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Firefox 63
Windows
Desktop
5 years ago
Test name Executions per second
getElementById 1669689.6 Ops/sec
getElementsByTagName 719452.7 Ops/sec
querySelector 833057.8 Ops/sec
getElementsByClassName 791120.9 Ops/sec
getElementsByName 1502550.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;