Run details:
Mozilla/5.0 (Linux; Android 9; N20) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/45.08.4.5073
Chrome Mobile 77
Android
Mobile
4 years ago
Test name Executions per second
Use hasClass shorthand 350669.3 Ops/sec
Use classList 514503.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Use hasClass shorthand

  • Use classList


;