HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 20 community runs

Desktop Results:
Chrome 20 runs
baseVal
1.2M/s
getBBox
301K/s
getBoundingClientRect
250K/s

Fastest: baseVal (4.8x faster)

View exact numbers
  • baseVal: 1,204,522 ops/sec
  • getBBox: 300,840 ops/sec
  • getBoundingClientRect: 249,905 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
    getBBox
    getBoundingClientRect
    baseVal

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140 on Windows
View result in a separate tab
baseVal
897K/s
getBBox
151K/s
getBoundingClientRect
117K/s
View exact numbers
Test name Executions per second
baseVal 897,244 Ops/sec
getBBox 151,247 Ops/sec
getBoundingClientRect 117,374 Ops/sec