Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:56.0) Gecko/20100101 Firefox/56.0
Firefox 56
Mac OS X 10.11
Other
7 years ago
Test name Executions per second
className 7724.1 Ops/sec
setAttribute 5043.9 Ops/sec
classList 3188.1 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;