Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
Safari 5
Windows 7
Desktop
3 years ago
Test name Executions per second
className 3483.5 Ops/sec
setAttribute 2190.2 Ops/sec
classList 4928.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;