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: 6 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133 on Windows
View result in a separate tab
Test name Executions per second
jQuery hasClass 3279156.0 Ops/sec
Vanilla JS classList.contains 6320593.0 Ops/sec