Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Chrome 129
Windows
Desktop
one year ago
getBoundingClientRect() (simple property access)
899K/s
getBoundingClientRect() (destructured)
882K/s
offsetWidth / offsetHeight (destructured)
694K/s
offsetWidth / offsetHeight (destructured and renamed)
685K/s
offsetWidth / offsetHeight (simple property access)
664K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (simple property access) 899,263 Ops/sec
getBoundingClientRect() (destructured) 882,426 Ops/sec
offsetWidth / offsetHeight (destructured) 694,004 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 685,368 Ops/sec
offsetWidth / offsetHeight (simple property access) 663,853 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: