Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 OPR/48.0.2685.52
Opera 48
Windows 7
Other
7 years ago
Test name Executions per second
className 1417.3 Ops/sec
setAttribute 1346.1 Ops/sec
classList 1007.5 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;