Run details:
Mozilla/5.0 (Linux; Android 9; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
Chrome Mobile 70
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1422027.5 Ops/sec
getElementsByTagName 350012.2 Ops/sec
querySelector 376938.9 Ops/sec
getElementsByClassName 352166.9 Ops/sec
getElementsByName 381779.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;