boolvssearch

Benchmark created by Gyst on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div class='moo1'>
<div class='moo2'>
<div class='selectMe'>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
selectitem

if(jQuery('.moo1').is(':visible') && jQuery('moo2').is(':visible')){
            jQuery('.selectMe').show();
        }else{
            jQuery('.selectMe').hide();
        }
ready
toggle
var isthere1 = true;
var isthere2 = true;


jQuery('.selectMe').toggle(isthere1 && isthere2);
ready

Revisions

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

  • Revision 1: published by Gyst on