Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Waterfox/91.4.2
Firefox 91
Windows
Desktop
2 years ago
Test name Executions per second
getElementById 6535269.5 Ops/sec
getElementsByTagName 5524300.0 Ops/sec
querySelector 8791019.0 Ops/sec
getElementsByClassName 4723463.5 Ops/sec
getElementsByName 7799192.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;