to detach or not to detach (v14)

Revision 14 of this benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div class="container">
<div class="one">One</div>
<div class="two">Two</div>
<div class="three">Three</div>
<div class="four">Four</div>
<div class="five">Five</div>
<div class="six">Six</div>
<div class="seven">Seven</div>
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
not detach
$('.one').text('1')
$('.two').text('2')
$('.three').text('3')
$('.four').text('4')
$('.five').text('5')
$('.six').text('6')
$('.seven').text('7')
ready
detach
$('.container').detach();
$('.one').text('1')
$('.two').text('2')
$('.three').text('3')
$('.four').text('4')
$('.five').text('5')
$('.six').text('6')
$('.seven').text('7')
ready

Revisions

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