shim vs ext

JavaScript performance comparison

Revision 2 of this test case created

Preparation code

<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.0.8/es5-shim.min.js">
</script>
<script src="http://cdn.sencha.io/ext-4.1.1-gpl/ext-all.js">
</script>
<script>
Benchmark.prototype.setup = function() {
    var array = [];
    for (var i = 0; i < 1e3; i++) {
      array.push(i);
    }
};
</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
ES5 Shim/native
array.forEach(function() {});
pending…
ExtJS
Ext.Array.forEach(array, function() {})
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