Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:61.0) Gecko/20100101 Firefox/61.0
Firefox 61
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
getElementById 3750503.2 Ops/sec
getElementsByTagName 1758703.5 Ops/sec
querySelector 1558673.4 Ops/sec
getElementsByClassName 1611140.4 Ops/sec
getElementsByName 2848764.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;