Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15
Safari 12
Mac OS X 10.14.6
Desktop
3 years ago
Test name Executions per second
clientHeight 2475576.2 Ops/sec
offsetHeight 2093762.8 Ops/sec
window.getComputedStyle 1627364.5 Ops/sec
Multiple: Only _style 657828.4 Ops/sec
Multiple: _style e clientHeight 784967.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientHeight

  • offsetHeight

  • window.getComputedStyle

  • Multiple: Only _style

  • Multiple: _style e clientHeight


;