Run details:
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows XP
Desktop
6 years ago
Test name Executions per second
className 7419.9 Ops/sec
setAttribute 4372.2 Ops/sec
classList 1787.7 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;