Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Mac OS X 10.11
Desktop
4 years ago
Test name Executions per second
getElementById 3954612.8 Ops/sec
getElementsByTagName 2165471.5 Ops/sec
querySelector 2345577.2 Ops/sec
getElementsByClassName 2134764.0 Ops/sec
getElementsByName 2890305.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;