Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
getBoundingClientRect vs window.getComputedStyle + new WebKitCSSMatrix
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 134
Operating system:
Android
Device Platform:
Mobile
Date tested:
one year ago
Benchmark engine:
Benchmark.js
getBoundingClientRect
25K/s
window.getComputedStyle + new WebKitCSSMatrix
22K/s
View exact numbers
Test name
Executions per second
✓
getBoundingClientRect
25,195 Ops/sec
window.getComputedStyle + new WebKitCSSMatrix
21,930 Ops/sec
HTML Preparation code:
<div id="test"></div>
Tests:
getBoundingClientRect
let element = document.getElementById('test'); let rect = element.getBoundingClientRect(); let left = rect.left;
window.getComputedStyle + new WebKitCSSMatrix
let element = document.getElementById('test'); let style = window.getComputedStyle(element); let matrix = new WebKitCSSMatrix(style.transform); let left = matrix.m41;