jQuery Show Testing

Benchmark created by Sam on


Preparation HTML

<script src="https://raw.github.com/gist/1330979/455f1b9cbbaf73ef31b7733ec26cd1f75b18f652/jquery.js">
</script>
<script>
  $our = $.noConflict(true);
</script>
<script src="https://code.jquery.com/jquery-git.js">
</script>
<script>
  $git = $.noConflict(true);
</script>
<style> #moof { display:none;} </style>
<div id="moof">
  Moof
</div>

Setup

var $ourmoof = $our("#moof");
    var $gitmoof = $git("#moof");

Teardown


    document.getElementById("moof").style.display = "";
  

Test runner

Ready to run.

Testing in
TestOps/sec
New Show Function
$ourmoof.show()
ready
Old Show Function
$gitmoof.show()
ready

Revisions

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