HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 12 community runs

Desktop Results:
Chrome 12 runs
getBoundingClientRect()
160/s
Other CSS Property
118/s
CSS Height Property
111/s

Fastest: getBoundingClientRect() (1.4x faster)

View exact numbers
  • getBoundingClientRect(): 160 ops/sec
  • Other CSS Property: 118 ops/sec
  • CSS Height Property: 111 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    getBoundingClientRect()
    CSS Height Property
    Other CSS Property

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Android 14; Mobile; rv:129.0) Gecko/129.0 Firefox/129.0
Firefox Mobile 129 on Android
View result in a separate tab
Other CSS Property
5K/s
getBoundingClientRect()
5K/s
CSS Height Property
5K/s
View exact numbers
Test name Executions per second
Other CSS Property 5,239 Ops/sec
getBoundingClientRect() 4,786 Ops/sec
CSS Height Property 4,581 Ops/sec