Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136
Windows
Desktop
one year ago
getBoundingClientRect() (destructured)
728K/s
getBoundingClientRect() (simple property access)
699K/s
offsetWidth / offsetHeight (destructured)
593K/s
offsetWidth / offsetHeight (simple property access)
589K/s
offsetWidth / offsetHeight (destructured and renamed)
588K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 727,576 Ops/sec
getBoundingClientRect() (simple property access) 699,222 Ops/sec
offsetWidth / offsetHeight (destructured) 593,477 Ops/sec
offsetWidth / offsetHeight (simple property access) 589,201 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 588,381 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: