Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Ubuntu
Desktop
3 years ago
Test name Executions per second
clientHeight 1947456.6 Ops/sec
offsetHeight 1992491.8 Ops/sec
window.getComputedStyle 1064346.4 Ops/sec
Multiple: Only _style 380354.5 Ops/sec
Multiple: _style e clientHeight 400947.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;