Run details:
Mozilla/5.0 (Windows NT 5.1; rv:51.0) Gecko/20100101 Firefox/51.0
Firefox 51
Windows XP
Other
7 years ago
Test name Executions per second
classList.add/classList.remove 41414.4 Ops/sec
function addClass/function removeClass 28081.2 Ops/sec
jQuery 14787.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • classList.add/classList.remove

  • function addClass/function removeClass

  • function addClass/function removeClass S

  • function addClass/function removeClass S N

  • jQuery


;