Run details:
Mozilla/5.0 (iPad; CPU OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B100 Safari/602.1
Mobile Safari 10
iOS 10.1.1
iPad
7 years ago
Test name Executions per second
classList.add/classList.remove 334386.4 Ops/sec
function addClass/function removeClass 191501.1 Ops/sec
jQuery 45721.3 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


;