jQuery 1.x vs 2.x

JavaScript performance comparison

Revision 9 of this test case created by m_gol

Preparation code

<script src="//code.jquery.com/jquery-git1.js">
</script>
<script>
  jQ1 = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-git2.js">
</script>
<script>
  jQ2 = jQuery.noConflict();
</script>
<div id="test"></div>
<script>
Benchmark.prototype.setup = function() {
    function testcase(_$) {
      _$("#test").append('<div></div>')
    };
   
};

Benchmark.prototype.teardown = function() {
    jQ2("#test").html("");
};
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
1.x
testcase(jQ1);
pending…
2.x
testcase(jQ2);
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment