Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Windows 7
Other
7 years ago
Test name Executions per second
className 8973.0 Ops/sec
setAttribute 5625.4 Ops/sec
classList 3154.9 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;