Run details:
Mozilla/5.0 (Linux; Android 7.1.2; MK39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/61.1.3076.56625
Opera 61
Android 7.1.2
Desktop
3 years ago
Test name Executions per second
querySelector 742420.0 Ops/sec
querySelectorAll 261927.5 Ops/sec
getElementsByClassName 1081555.1 Ops/sec
querySelector (ID) 606344.6 Ops/sec
getElementsByID 1236957.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;