Run details:
Mozilla/5.0 (Linux; Android 12; SM-G975F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
2 years ago
Test name Executions per second
The method getElementsByClassName() 2345572.0 Ops/sec
The method querySelectorAll() 436449.8 Ops/sec
HTML Preparation code:
Tests:
  • The method getElementsByClassName()

  • The method querySelectorAll()