Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
clientHeight 2661008.8 Ops/sec
offsetHeight 2610278.0 Ops/sec
window.getComputedStyle 1498994.1 Ops/sec
Multiple: Only _style 597761.5 Ops/sec
Multiple: _style e clientHeight 653860.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;