Remove vs. Hide (v50)

Revision 50 of this benchmark created on


Preparation HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<div id="remove-me"></div>
<div id="hide-me"></div>

Setup

var remove = $("#remove-me");
  var hide = $("#hide-me");
  var body = $("body");

Test runner

Ready to run.

Testing in
TestOps/sec
Remove
remove.remove();
body.append(remove);
ready
Hide
hide.hide();
hide.show();
ready

Revisions

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