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 4097.4 Ops/sec
setAttribute 3308.9 Ops/sec
classList 2344.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;