Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
clientHeight 3087580.5 Ops/sec
offsetHeight 3106708.8 Ops/sec
window.getComputedStyle 1972587.1 Ops/sec
Multiple: Only _style 767704.0 Ops/sec
Multiple: _style e clientHeight 853487.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight