Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
clientHeight 3513853.2 Ops/sec
offsetHeight 3534428.5 Ops/sec
window.getComputedStyle 2268388.2 Ops/sec
Multiple: Only _style 879572.8 Ops/sec
Multiple: _style e clientHeight 961771.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;