Document fragment (v6)

Revision 6 of this benchmark created by Murali on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<div id="divContainer" class="containerClass">
        <input type="text" class="textbox" name="test" />
        <input type="text" class="textbox" />
        <input type="text" class="textbox" name="test" />
        <input type="text" class="textbox" />
        <div class="innerContainer" style="height:100px; width:100px; background-color:blue;" name="test">
            <p> </p>
        </div>
        <ul>
        </ul>
    </div>

Test runner

Ready to run.

Testing in
TestOps/sec
No Fragment
var result1 = $('#divContainer div.innerContainer p').hide(); 
ready
Fragment
var result1 = $('#divContainer p').hide(); 
ready

Revisions

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