Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Chrome 76
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
clientWidth 932830.5 Ops/sec
offsetwidth 3191875.2 Ops/sec
window.getComputedStyle 317669.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth

  • offsetwidth

  • window.getComputedStyle