Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
getElementById 8150453.0 Ops/sec
getElementsByTagName 7084375.5 Ops/sec
querySelector 15440379.0 Ops/sec
getElementsByClassName 6600450.5 Ops/sec
getElementsByName 11557324.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;