Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Windows
Desktop
4 years ago
Test name Executions per second
clientHeight 2124240.2 Ops/sec
offsetHeight 2331392.8 Ops/sec
window.getComputedStyle 1205133.8 Ops/sec
Multiple: Only _style 447885.0 Ops/sec
Multiple: _style e clientHeight 509096.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;