Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 OPR/82.0.4227.43
Opera 82
Mac OS X 10.15.5
Desktop
2 years ago
Test name Executions per second
className 816.0 Ops/sec
setAttribute 817.8 Ops/sec
classList 970.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • className

  • setAttribute

  • classList


;