HTML Preparation code:
Tests:
  • Dex ::: addClass()

  • jQuery ::: addClass()

  • Dex ::: removeClass()

  • jQuery ::: removeClass()

  • Dex ::: toggleClass()

  • jQuery ::: toggleClass()

  • Dex ::: replaceClass()

  • jQuery ::: replace class equivalent

  • Dex ::: hasClass()

  • jQuery ::: hasClass()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Dex ::: addClass()
    jQuery ::: addClass()
    Dex ::: removeClass()
    jQuery ::: removeClass()
    Dex ::: toggleClass()
    jQuery ::: toggleClass()
    Dex ::: replaceClass()
    jQuery ::: replace class equivalent
    Dex ::: hasClass()
    jQuery ::: hasClass()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Chrome 61 on Mac OS X 10.12.5
View result in a separate tab
Test name Executions per second
Dex ::: addClass() 71075.3 Ops/sec
jQuery ::: addClass() 47934.9 Ops/sec
Dex ::: removeClass() 73879.7 Ops/sec
jQuery ::: removeClass() 50378.2 Ops/sec
Dex ::: toggleClass() 55735.7 Ops/sec
jQuery ::: toggleClass() 12949.2 Ops/sec
Dex ::: replaceClass() 193421.9 Ops/sec
jQuery ::: replace class equivalent 27351.8 Ops/sec
Dex ::: hasClass() 2399868.0 Ops/sec
jQuery ::: hasClass() 263288.0 Ops/sec


;