Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1
Mobile Safari 11
iOS 11.0
iPhone
7 years ago
Test name Executions per second
className 20649.8 Ops/sec
setAttribute 11523.7 Ops/sec
classList 8340.3 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;