Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Setting variable value with null check and without
(version: 0)
Comparing performance of:
With vs Without
Created:
2 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<div id="testelement" style="min-height:123px"><div style="height:123px"></div></div>
Tests:
With
if (!testelement.style.minHeight) { testelement.style.minHeight = `${testelement.offsetHeight}px` }
Without
testelement.style.minHeight = `${testelement.offsetHeight}px`
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
With
Without
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!
Comments
Confirm delete:
Do you really want to delete benchmark?