Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Windows
Desktop
one year ago
Test name Executions per second
clientHeight 742113.8 Ops/sec
offsetHeight 706581.9 Ops/sec
window.getComputedStyle 392277.7 Ops/sec
Multiple: Only _style 182969.9 Ops/sec
Multiple: _style e clientHeight 234319.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;