Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36
Chrome 69
Linux
Desktop
5 years ago
Test name Executions per second
getElementById 1707647.5 Ops/sec
getElementsByTagName 685287.8 Ops/sec
querySelector 818339.9 Ops/sec
getElementsByClassName 705522.1 Ops/sec
getElementsByName 892774.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;