Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
one year ago
getBoundingClientRect() (simple property access)
1.2M/s
getBoundingClientRect() (destructured)
1.2M/s
offsetWidth / offsetHeight (simple property access)
959K/s
offsetWidth / offsetHeight (destructured)
957K/s
offsetWidth / offsetHeight (destructured and renamed)
942K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 1,200,802 Ops/sec
getBoundingClientRect() (destructured) 1,197,323 Ops/sec
offsetWidth / offsetHeight (simple property access) 959,438 Ops/sec
offsetWidth / offsetHeight (destructured) 956,548 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 942,244 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: