remove detach empty

Benchmark created by Felipe Wieman on


Preparation HTML

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

<div id="html"><div id="sup"></div></div>

Teardown


    $('#sup').html("<div id='sup'></div>");
  

Test runner

Ready to run.

Testing in
TestOps/sec
1
$('#sup').remove();
ready
2
$('#sup').detach();
ready
3
$('#html').html('');
ready
4
$('#html').empty();
ready

Revisions

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

  • Revision 1: published by Felipe Wieman on