Run details:
Mozilla/5.0 (Linux; Android 12; M2103K19G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.1.3282.59829
Opera Mobile 64
Android
Mobile
one month ago
Test name Executions per second
jQuery hasClass 308651.8 Ops/sec
Vanilla JS classList.contains 1156166.1 Ops/sec
HTML Preparation code:
Tests:
  • jQuery hasClass

  • Vanilla JS classList.contains


;