Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
one year ago
offsetWidth / offsetHeight (destructured)
896K/s
offsetWidth / offsetHeight (destructured and renamed)
866K/s
offsetWidth / offsetHeight (simple property access)
826K/s
getBoundingClientRect() (destructured)
295K/s
getBoundingClientRect() (simple property access)
245K/s
View exact numbers
Test name Executions per second
offsetWidth / offsetHeight (destructured) 895,539 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 866,354 Ops/sec
offsetWidth / offsetHeight (simple property access) 825,541 Ops/sec
getBoundingClientRect() (destructured) 294,656 Ops/sec
getBoundingClientRect() (simple property access) 245,267 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: