Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Firefox 75
Windows
Desktop
4 years ago
Test name Executions per second
clientHeight 1890563.4 Ops/sec
offsetHeight 1879230.2 Ops/sec
window.getComputedStyle 1010011.4 Ops/sec
Multiple: Only _style 375752.8 Ops/sec
Multiple: _style e clientHeight 413639.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight