Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.4 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.4
Safari 11
Mac OS X 10.13.1
Other
7 years ago
Test name Executions per second
className 26982.2 Ops/sec
setAttribute 13122.7 Ops/sec
classList 8445.4 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;