Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Linux
Other
7 years ago
Test name Executions per second
classList.add/classList.remove 513191.5 Ops/sec
function addClass/function removeClass 386204.2 Ops/sec
jQuery 133854.9 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


;