Run details:
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
Mac OS X 10.12.5
Other
7 years ago
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
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()


;