Run details:
Mozilla/5.0 (Linux; Android 7.1.1; Moto E (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Mobile Safari/537.36
Chrome Mobile 89
Android 7.1.1
Mobile
3 years ago
Test name Executions per second
clientWidth 55866.1 Ops/sec
offsetwidth 336991.3 Ops/sec
window.getComputedStyle 32359.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth

  • offsetwidth

  • window.getComputedStyle