Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:59.0) Gecko/20100101 Firefox/59.0
Firefox 59
Mac OS X 10.12
Other
6 years ago
Test name Executions per second
className 12480.0 Ops/sec
setAttribute 6457.8 Ops/sec
classList 4496.9 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;