Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Computed style
(version: 0)
Comparing performance of:
Cached vs Not cached
Created:
4 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div></div>
Tests:
Cached
var div = document.body.querySelector('div'); const x = window.getComputedStyle(div); x.getPropertyValue('opacity'); x.getPropertyValue('transitionProperty');
Not cached
var div = document.body.querySelector('div'); const x = window.getComputedStyle(div); x.getPropertyValue('opacity'); const y = window.getComputedStyle(div); y.getPropertyValue('transitionProperty');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Cached
Not cached
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
jquery.css vs getComputedStyle
computedstyle vs innerwidth
jquery3.4.1.css vs getComputedStyle
elem.ownerDocument.defaultView.getComputedStyle vs window.getComputedStyle
computedStyleMap vs getComputedStyle
Comments
Confirm delete:
Do you really want to delete benchmark?