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 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
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


;