Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4676.0 Safari/537.36 OPR/83.0.4232.0 (Edition developer)
Opera 83
Windows
Desktop
3 years ago
Test name Executions per second
clientHeight 465387.1 Ops/sec
offsetHeight 256971.9 Ops/sec
window.getComputedStyle 204074.4 Ops/sec
Multiple: Only _style 126400.4 Ops/sec
Multiple: _style e clientHeight 151670.5 Ops/sec
HTML Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight