Check hidden (v24)

Revision 24 of this benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div>
    <div id="test">Hello there</div>
</div>

Setup

var elDOM = document.getElementById("test");
    var elJQ = $("#test");

Test runner

Ready to run.

Testing in
TestOps/sec
getAttribute('visibility');
var x = elDOM.getAttribute('visibility');
var y = elDOM.getAttribute('display');
ready
css('visibility')
var x = elJQ.css('visibility');
var y = elJQ.css('display');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.