Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Ubuntu
Other
2025 years ago
Test name Executions per second
className 3917.3 Ops/sec
setAttribute 2341.3 Ops/sec
classList 1279.1 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;