Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Windows
Desktop
3 years ago
Test name Executions per second
clientHeight 2815387.2 Ops/sec
offsetHeight 2781829.2 Ops/sec
window.getComputedStyle 1709580.1 Ops/sec
Multiple: Only _style 632456.8 Ops/sec
Multiple: _style e clientHeight 685878.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight