Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:56.0) Gecko/20100101 Firefox/56.0 Waterfox/56.3
Firefox 56
Mac OS X 10.13
Desktop
4 years ago
Test name Executions per second
getElementById 3332554.0 Ops/sec
getElementsByTagName 1322905.9 Ops/sec
querySelector 1581302.6 Ops/sec
getElementsByClassName 1913756.1 Ops/sec
getElementsByName 2978164.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;