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

  • setAttribute

  • classList


;