Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Windows
Desktop
2 years ago
Test name Executions per second
clientHeight 1095996.0 Ops/sec
offsetHeight 1067450.8 Ops/sec
window.getComputedStyle 623622.6 Ops/sec
Multiple: Only _style 230731.2 Ops/sec
Multiple: _style e clientHeight 329385.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight