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

  • setAttribute

  • classList


;