Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
Safari 10
Mac OS X 10.12.4
Other
7 years ago
Test name Executions per second
className 17160.6 Ops/sec
setAttribute 10342.2 Ops/sec
classList 6462.4 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;