Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Nenthe
(version: 1)
Comparing performance of:
Width vs :visible
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here--> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.js'></script> <div style="width:200px" id=''></div>
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
Width
$('div').width()
:visible
$('div').is(':visible')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Width
:visible
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Browser/OS:
Firefox 137 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
:visible
327K/s
Width
204K/s
View exact numbers
Test name
Executions per second
✓
:visible
326,648 Ops/sec
Width
203,672 Ops/sec
Related benchmarks
Luxon vs
undefined to boolean
testingqueries
test early return
Multiple .closest() or complex CSS selector
Query Element
Test id vs next sibbling
Test content attribute vs html element
dsDOM vs JQuery
Comments
Confirm delete:
Do you really want to delete benchmark?