Run details:
Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
4 years ago
Test name Executions per second
getElementById 1287851.2 Ops/sec
getElementsByTagName 1067472.1 Ops/sec
querySelector 1227369.4 Ops/sec
getElementsByClassName 1070350.6 Ops/sec
getElementsByName 2236479.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;