Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Windows
Desktop
2 years ago
getBoundingClientRect() (destructured)
494K/s
getBoundingClientRect() (simple property access)
485K/s
offsetWidth / offsetHeight (simple property access)
417K/s
offsetWidth / offsetHeight (destructured)
409K/s
offsetWidth / offsetHeight (destructured and renamed)
375K/s
View exact numbers
Test name Executions per second
getBoundingClientRect() (destructured) 494,068 Ops/sec
getBoundingClientRect() (simple property access) 485,462 Ops/sec
offsetWidth / offsetHeight (simple property access) 417,260 Ops/sec
offsetWidth / offsetHeight (destructured) 409,424 Ops/sec
offsetWidth / offsetHeight (destructured and renamed) 375,091 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: