Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Ubuntu
Desktop
3 years ago
Test name Executions per second
getElementById 5234074.0 Ops/sec
getElementsByTagName 3761078.2 Ops/sec
querySelector 10766936.0 Ops/sec
getElementsByClassName 3803613.8 Ops/sec
getElementsByName 5871935.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;