Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Windows 7
Desktop
4 years ago
Test name Executions per second
clientWidth 852484.5 Ops/sec
offsetwidth 1249627.6 Ops/sec
window.getComputedStyle 558462.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth

  • offsetwidth

  • window.getComputedStyle