Run details:
Mozilla/5.0 (Linux; Android 8.1.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Android 8.1.0
Desktop
3 years ago
Test name Executions per second
className 631.4 Ops/sec
setAttribute 365.6 Ops/sec
classList 416.8 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;