HTML Preparation code:
Tests:
  • jQuery hasClass

  • Vanilla JS classList.contains

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    jQuery hasClass
    Vanilla JS classList.contains

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
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 on Android
View result in a separate tab
Test name Executions per second
jQuery hasClass 308651.8 Ops/sec
Vanilla JS classList.contains 1156166.1 Ops/sec


;