Run details:
Mozilla/5.0 (X11; Linux armv7l; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Linux
Desktop
3 years ago
Test name Executions per second
getElementById 1768148.6 Ops/sec
getElementsByTagName 1241208.4 Ops/sec
querySelector 1509061.0 Ops/sec
getElementsByClassName 1211451.9 Ops/sec
getElementsByName 1507227.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName