Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
clientWidth 1013436.9 Ops/sec
offsetwidth 6328588.5 Ops/sec
window.getComputedStyle 494731.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clientWidth

  • offsetwidth

  • window.getComputedStyle