Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Ubuntu
Desktop
5 years ago
Test name Executions per second
getElementById 1097502.1 Ops/sec
getElementsByTagName 993166.6 Ops/sec
querySelector 995093.1 Ops/sec
getElementsByClassName 1003709.0 Ops/sec
getElementsByName 1911298.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;