Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Chrome 86
Windows 7
Desktop
4 years ago
Test name Executions per second
clientHeight 487724.8 Ops/sec
offsetHeight 355833.3 Ops/sec
window.getComputedStyle 248248.9 Ops/sec
Multiple: Only _style 113805.6 Ops/sec
Multiple: _style e clientHeight 133531.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;