jQuery 1.x vs 2.x

JavaScript performance comparison

Revision 9 of this test case created by m_gol

Preparation code

<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>
      
<script>
Benchmark.prototype.setup = function() {
  function testcase(_$) {
    _$("#test").append('<div></div>')
  };
  

};

Benchmark.prototype.teardown = function() {
  jQ2("#test").html("");

};
</script>

Preparation code output

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

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
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.

0 Comments