Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0
Firefox 76
Ubuntu
Desktop
4 years ago
Test name Executions per second
getElementById 6613036.0 Ops/sec
getElementsByTagName 3476449.8 Ops/sec
querySelector 3895001.0 Ops/sec
getElementsByClassName 3195402.2 Ops/sec
getElementsByName 4148980.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;