Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Chrome 65
Mac OS X 10.11.6
Other
6 years ago
Test name Executions per second
jQuery 3.3.1 addClass/removeClass 182876.5 Ops/sec
jQuery 2.1.4 addClass/removeClass 198953.3 Ops/sec
Vanilla JS classList add/remove 281531.2 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 3.3.1 addClass/removeClass

  • jQuery 2.1.4 addClass/removeClass

  • Vanilla JS classList add/remove


;