Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77
Mobile Safari 11
iOS 11.4.1
Mobile
6 years ago
Test name Executions per second
className 10682.7 Ops/sec
setAttribute 13101.1 Ops/sec
classList 6839.6 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;