Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70
Mac OS X 10.14.1
Desktop
5 years ago
Test name Executions per second
className 6247.3 Ops/sec
setAttribute 4791.9 Ops/sec
classList 4091.2 Ops/sec
HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;