Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.12.6
Desktop
2 years ago
Test name Executions per second
clientHeight 447924.4 Ops/sec
offsetHeight 253664.0 Ops/sec
window.getComputedStyle 263188.9 Ops/sec
Multiple: Only _style 132809.0 Ops/sec
Multiple: _style e clientHeight 153042.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight