Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Mac OS X 10.12.6
Desktop
4 years ago
Test name Executions per second
clientHeight 1157673.1 Ops/sec
offsetHeight 724843.2 Ops/sec
window.getComputedStyle 602895.6 Ops/sec
Multiple: Only _style 268990.4 Ops/sec
Multiple: _style e clientHeight 314120.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;