Run details:
Mozilla/5.0 (Linux; Android 6.0.1; SGP611) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36
Chrome 98
Android 6.0.1
Desktop
2 years ago
Test name Executions per second
getComputedStyle 11.1 Ops/sec
className 3985.5 Ops/sec
classList.contains 1214.0 Ops/sec
HTML Preparation code:
Tests:
  • getComputedStyle

  • className

  • classList.contains


;