Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Ubuntu
Desktop
4 years ago
Test name Executions per second
getElementById 1649959.5 Ops/sec
getElementsByTagName 1320084.4 Ops/sec
querySelector 1291960.2 Ops/sec
getElementsByClassName 1068653.8 Ops/sec
getElementsByName 1374088.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;