Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
one year ago
getBoundingClientRect() (destructured)
680K/s
getBoundingClientRect() (simple property access)
676K/s
offsetWidth / offsetHeight (simple property access)
558K/s
offsetWidth / offsetHeight (destructured and renamed)
545K/s
offsetWidth / offsetHeight (destructured)
520K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 680,297 Ops/sec
getBoundingClientRect() (simple property access) 676,372 Ops/sec
offsetWidth / offsetHeight (simple property access) 558,271 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 544,624 Ops/sec
offsetWidth / offsetHeight (destructured) 519,676 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: