Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows 8.1
Desktop
2 years ago
Test name Executions per second
clientHeight 751482.9 Ops/sec
offsetHeight 886233.2 Ops/sec
window.getComputedStyle 368428.4 Ops/sec
Multiple: Only _style 201444.0 Ops/sec
Multiple: _style e clientHeight 283336.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight