Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
clientHeight 489669.8 Ops/sec
offsetHeight 258787.8 Ops/sec
window.getComputedStyle 214214.1 Ops/sec
Multiple: Only _style 125891.5 Ops/sec
Multiple: _style e clientHeight 146803.5 Ops/sec
HTML Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight