Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Mac OS X 10.12
Other
6 years ago
Test name Executions per second
className 7717.5 Ops/sec
setAttribute 4216.0 Ops/sec
classList 2777.1 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;