Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Mac OS X 11.2
Desktop
3 years ago
Test name Executions per second
className 20153.2 Ops/sec
setAttribute 13584.5 Ops/sec
classList 7363.4 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;