HTML Preparation code:
Tests:
  • jQuery hasClass

  • jQuery classList.contains

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    jQuery hasClass
    jQuery 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 300639.3 Ops/sec
jQuery classList.contains 519114.0 Ops/sec


;