Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
getElementById 8830785.0 Ops/sec
getElementsByTagName 4512303.0 Ops/sec
querySelector 5243736.5 Ops/sec
getElementsByClassName 4423903.0 Ops/sec
getElementsByName 5588987.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;