Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Ubuntu
Desktop
3 years ago
Test name Executions per second
clientHeight 2642057.2 Ops/sec
offsetHeight 2548679.8 Ops/sec
window.getComputedStyle 1506756.8 Ops/sec
Multiple: Only _style 559587.5 Ops/sec
Multiple: _style e clientHeight 626176.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight