Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Chrome 55
Windows
Other
7 years ago
Test name Executions per second
className 2129.5 Ops/sec
setAttribute 1558.7 Ops/sec
classList 4054.5 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;