Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.1M/s
getBoundingClientRect() (destructured)
1.0M/s
offsetWidth / offsetHeight (simple property access)
804K/s
offsetWidth / offsetHeight (destructured and renamed)
766K/s
offsetWidth / offsetHeight (destructured)
765K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,050,811 Ops/sec
getBoundingClientRect() (destructured) 1,041,448 Ops/sec
offsetWidth / offsetHeight (simple property access) 803,647 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 765,919 Ops/sec
offsetWidth / offsetHeight (destructured) 765,317 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: