Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
className 10368.1 Ops/sec
setAttribute 5458.2 Ops/sec
classList 3211.0 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;