Run details:
Mozilla/5.0 (Linux; Android 9; Pixel 2 XL Build/PPR1.180610.009) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
Chrome Mobile 68
Android
Mobile
6 years ago
Test name Executions per second
getElementById 1450338.0 Ops/sec
querySelector 725456.7 Ops/sec
getElementById or querySelector 732287.2 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementById or querySelector


;