HTML Preparation code:
Tests:
  • Dex Add Class

  • Dex Remove Class

  • Dex Has Class

  • Dex Toggle Class

  • Dex Replace Class

  • jQuery Add Class

  • jQuery Remove Class

  • jQuery Has Class

  • jQuery Replace Class

  • jQuery Toggle Class

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Dex Add Class
    Dex Remove Class
    Dex Has Class
    Dex Toggle Class
    Dex Replace Class
    jQuery Add Class
    jQuery Remove Class
    jQuery Has Class
    jQuery Replace Class
    jQuery Toggle Class

    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 Add Class 1039579.9 Ops/sec
Dex Remove Class 1375333.4 Ops/sec
Dex Has Class 3342226.0 Ops/sec
Dex Toggle Class 925498.1 Ops/sec
Dex Replace Class 2631932.2 Ops/sec
jQuery Add Class 540185.7 Ops/sec
jQuery Remove Class 517865.7 Ops/sec
jQuery Has Class 849267.9 Ops/sec
jQuery Replace Class 335583.7 Ops/sec
jQuery Toggle Class 199303.6 Ops/sec


;