Run details:
Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Windows 8
Desktop
4 years ago
Test name Executions per second
className 3716.6 Ops/sec
setAttribute 1615.9 Ops/sec
classList 1987.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;