Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
Chrome 52
Windows
Other
7 years ago
Test name Executions per second
className 8915.8 Ops/sec
setAttribute 318.3 Ops/sec
classList 5423.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;