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
2 months ago
Test name Executions per second
jQuery hasClass 300639.3 Ops/sec
jQuery classList.contains 519114.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery hasClass

  • jQuery classList.contains