Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Chrome 31
Windows 8.1
Other
7 years ago
Test name Executions per second
className 2641.3 Ops/sec
setAttribute 2204.9 Ops/sec
classList 2271.0 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;