Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Windows
Desktop
one year ago
Test name Executions per second
clientHeight 5056426.5 Ops/sec
offsetHeight 4392469.5 Ops/sec
window.getComputedStyle 3633254.8 Ops/sec
Multiple: Only _style 1478430.8 Ops/sec
Multiple: _style e clientHeight 1535801.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight