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

  • setAttribute

  • classList


;