Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Ubuntu
Desktop
2 years ago
Test name Executions per second
getElementById 5641713.5 Ops/sec
getElementsByTagName 4763658.0 Ops/sec
querySelector 6223141.5 Ops/sec
getElementsByClassName 4299442.5 Ops/sec
getElementsByName 6637344.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;