Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) Gecko/20100101 Firefox/64.0
Firefox 64
Mac OS X 10.13
Desktop
6 years ago
Test name Executions per second
className 8120.7 Ops/sec
setAttribute 4175.2 Ops/sec
classList 2379.0 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;