Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Firefox 49
Windows 7
Other
8 years ago
Test name Executions per second
className 8164.7 Ops/sec
setAttribute 4929.3 Ops/sec
classList 3117.7 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;