Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E302
Mobile Safari 11
iOS 11.3
iPhone
6 years ago
Test name Executions per second
className 10781.4 Ops/sec
setAttribute 13011.0 Ops/sec
classList 6917.0 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;