Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0 r3dfox/148.0.2
Firefox 148
Windows 8.1
Desktop
3 months ago
offsetWidth / offsetHeight (destructured)
3.8M/s
offsetWidth / offsetHeight (destructured and renamed)
3.8M/s
offsetWidth / offsetHeight (simple property access)
3.7M/s
getBoundingClientRect() (simple property access)
2.1M/s
getBoundingClientRect() (destructured)
2.1M/s
View exact numbers
Test name Executions per second
offsetWidth / offsetHeight (destructured) 3,824,582 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 3,784,439 Ops/sec
offsetWidth / offsetHeight (simple property access) 3,744,000 Ops/sec
getBoundingClientRect() (simple property access) 2,109,835 Ops/sec
getBoundingClientRect() (destructured) 2,089,344 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: