Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Firefox 38
Windows 7
Other
6 years ago
Test name Executions per second
className 3077.2 Ops/sec
setAttribute 4528.6 Ops/sec
classList 7430.5 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;