HTML Preparation code:
Tests:

Historical Performance Data aggregated from 16 community runs

Desktop Results:
Chrome 16 runs
clientHeight
286/s
getBoundingClientRect
191/s
getComputedStyle
122/s

Fastest: clientHeight (2.3x faster)

View exact numbers
  • clientHeight: 286 ops/sec
  • getBoundingClientRect: 191 ops/sec
  • getComputedStyle: 122 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
    getComputedStyle
    getBoundingClientRect
    clientHeight

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0
Firefox 148 on Mac OS X 10.15
View result in a separate tab
clientHeight
2K/s
getBoundingClientRect
895/s
getComputedStyle
503/s
View exact numbers
Test name Executions per second
clientHeight 1,784 Ops/sec
getBoundingClientRect 895 Ops/sec
getComputedStyle 503 Ops/sec