Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Chrome 80
Mac OS X 10.13.6
Desktop
4 years ago
Test name Executions per second
getElementById 5152717.5 Ops/sec
getElementsByTagName 1599116.8 Ops/sec
querySelector 2249472.5 Ops/sec
getElementsByClassName 2149813.5 Ops/sec
getElementsByName 2370347.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;