Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
Safari 10
Mac OS X 10.12.5
Other
6 years ago
Test name Executions per second
className 26848.7 Ops/sec
setAttribute 14686.3 Ops/sec
classList 8241.7 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;