jQuery 1.x vs 2.x (v9)

Revision 9 of this benchmark created by m_gol on


Preparation HTML

<script src="https://code.jquery.com/jquery-git1.js">
</script>
<script>
  jQ1 = jQuery.noConflict();
</script>
<script src="https://code.jquery.com/jquery-git2.js">
</script>
<script>
  jQ2 = jQuery.noConflict();
</script>
<div id="test"></div>

Setup

function testcase(_$) {
    _$("#test").append('<div></div>')
  };

Teardown



            jQ2("#test").html("");
        
  

Test runner

Ready to run.

Testing in
TestOps/sec
1.x
testcase(jQ1);
ready
2.x
testcase(jQ2);
ready

Revisions

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