Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Multiple: Only _style [vs] _style e clientHeight
(version: 0)
Comparing performance of:
Multiple: Only _style vs Multiple: _style e clientHeight
Created:
6 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<div id="teste">teste</div>
Script Preparation code:
var teste_n = '123px'; var _style = window.getComputedStyle(document.getElementById('teste'));
Tests:
Multiple: Only _style
parseFloat(_style['margin-top']) parseFloat(_style['margin-bottom']) parseFloat(_style['height'])
Multiple: _style e clientHeight
parseFloat(_style['margin-top']) parseFloat(_style['margin-bottom']) document.getElementById('teste').clientHeight;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Multiple: Only _style
Multiple: _style e clientHeight
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:
clientHeight vs offsetHeight vs window.getComputedStyle
clientWidth vs offsetWidth vs window.getComputedStyle
clientHeight vs getComputedStyle().height
clientHeight vs getComputedStyle().height no parse float
Comments
Confirm delete:
Do you really want to delete benchmark?