Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36
Chrome Mobile 119
Android
Mobile
2 years ago
getBoundingClientRect() (destructured)
38K/s
getBoundingClientRect() (simple property access)
38K/s
offsetWidth / offsetHeight (destructured)
29K/s
offsetWidth / offsetHeight (destructured and renamed)
29K/s
offsetWidth / offsetHeight (simple property access)
29K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 37,910 Ops/sec
getBoundingClientRect() (simple property access) 37,813 Ops/sec
offsetWidth / offsetHeight (destructured) 29,410 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 29,264 Ops/sec
offsetWidth / offsetHeight (simple property access) 28,555 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: