Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 Safari/537.36
Chrome 83
Mac OS X 10.13.4
Desktop
4 years ago
Test name Executions per second
getElementById 3781994.2 Ops/sec
getElementsByTagName 1942957.0 Ops/sec
querySelector 2347099.5 Ops/sec
getElementsByClassName 1927948.9 Ops/sec
getElementsByName 2667817.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;