Run details:
Mozilla/5.0 (Linux; Android 12; SM-T976B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Safari/537.36
Chrome 96
Android
Tablet
2 years ago
Test name Executions per second
querySelector 2629816.2 Ops/sec
querySelectorAll 1156571.5 Ops/sec
getElementsByClassName 3614881.5 Ops/sec
querySelector (ID) 1811098.8 Ops/sec
getElementsByID 2888324.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;