Run details:
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows XP
Desktop
5 years ago
Test name Executions per second
className 4960.0 Ops/sec
setAttribute 2876.2 Ops/sec
classList 1148.3 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;