Run details:
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Firefox 53
Windows 8
Other
7 years ago
Test name Executions per second
className 4201.8 Ops/sec
setAttribute 3064.0 Ops/sec
classList 1701.8 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;